Use sort_title, sort_titles in title page

This commit is contained in:
Leeingnyo
2021-12-26 01:50:55 +09:00
parent 8fea35fa51
commit 1ec8dcbfda
2 changed files with 12 additions and 7 deletions

View File

@@ -253,7 +253,12 @@ class Title
end
def sorted_titles(username, opt : SortOptions? = nil)
titles
if opt.nil?
opt = SortOptions.from_info_json @dir, username
end
# Helper function from src/util/util.cr
sort_titles titles, opt.not_nil!, username
end
# Get all entries, including entries in nested titles