Commit a2a4585429739bf0cefe532417d254989e0f6133
Committed by
Antonio Terceiro
1 parent
d924714f
Exists in
master
and in
29 other branches
Folder's view page list children by last update
(ActionItem1683)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/folder_helper.rb
... | ... | @@ -7,7 +7,7 @@ module FolderHelper |
7 | 7 | content_tag( |
8 | 8 | 'table', |
9 | 9 | content_tag('tr', content_tag('th', _('Title')) + content_tag('th', _('Last update'))) + |
10 | - articles.map {|item| display_article_in_listing(item, recursive, 0)}.join('') | |
10 | + articles.sort_by { |article| article.updated_at }.reverse.map {|item| display_article_in_listing(item, recursive, 0)}.join('') | |
11 | 11 | ) |
12 | 12 | else |
13 | 13 | content_tag('em', _('(empty folder)')) | ... | ... |