fix sort error

This commit is contained in:
邱博亞 2021-01-18 14:53:27 +08:00
parent e4ba43123c
commit 2fcfe60017
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class ArchivesController < ApplicationController
page.save page.save
end end
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 = [] each_data_count = []
categories = files_by_category.keys categories = files_by_category.keys
categories_sort = get_sorted_cat_with_filter(categories,'orm') categories_sort = get_sorted_cat_with_filter(categories,'orm')