diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index 2009347..e3ae340 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -73,7 +73,7 @@ class ArchivesController < ApplicationController page.save end end - files_by_category = ArchiveFile.where(is_hidden: false).filter_by_categories.filter_by_tags.group_by(&:category) + files_by_category = ArchiveFile.where(is_hidden: false).filter_by_categories.filter_by_tags.order_by(:created_at => "desc").group_by(&:category) each_data_count = [] categories = files_by_category.keys categories_sort = get_sorted_cat_with_filter(categories,'orm')