Followup #3584 - Fix order to DESC.

This commit is contained in:
Rolf Schmidt 2021-06-30 08:50:33 +01:00 committed by Thorsten Eckel
parent 651f4e819e
commit c8660b6d6f

View file

@ -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)