fix sort error
This commit is contained in:
parent
e4ba43123c
commit
2fcfe60017
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue