From c8660b6d6f5c539ed9615014d0376733d5f31390 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Wed, 30 Jun 2021 08:50:33 +0100 Subject: [PATCH] Followup #3584 - Fix order to DESC. --- .../controllers/ticket_zoom/sidebar_article_attachments.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/sidebar_article_attachments.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/sidebar_article_attachments.coffee index 2e7c561b8..e26c679c4 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/sidebar_article_attachments.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/sidebar_article_attachments.coffee @@ -17,7 +17,7 @@ class SidebarArticleAttachments extends App.Controller @el.html("
#{App.i18n.translateInline('none')}
") 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)