Browse Source

Followup #3584 - Fix order to DESC.

Rolf Schmidt 3 years ago
parent
commit
c8660b6d6f

+ 1 - 1
app/assets/javascripts/app/controllers/ticket_zoom/sidebar_article_attachments.coffee

@@ -17,7 +17,7 @@ class SidebarArticleAttachments extends App.Controller
       @el.html("<div>#{App.i18n.translateInline('none')}</div>")
       return
     html = ''
-    for ticket_article_id in @ticket.article_ids.sort((a, b) -> a - b)
+    for ticket_article_id in @ticket.article_ids.sort((a, b) -> b - a)
       if App.TicketArticle.exists(ticket_article_id)
         article = App.TicketArticle.find(ticket_article_id)
         attachments = App.TicketArticle.contentAttachments(article)