This commit is contained in:
Harry Bomrah 2016-05-12 20:01:49 +08:00
parent 8d953e1336
commit 62da6d6462
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class ArchivesController < ApplicationController
} }
end end
sorted = archives.sort_by{|k,v| k["sort_number"].to_i} sorted = archives.sort_by{|k,v| k["sort_number"].to_i}
sorted = sorted.sort_by{|k,v| v["is_top"]} # sorted = sorted.sort_by{|k,v| v["is_top"]}
{ {
"category-title" => category.title, "category-title" => category.title,
"archives" => sorted, "archives" => sorted,