Use sort_title instead of title

This commit is contained in:
Leeingnyo
2021-12-25 16:50:00 +09:00
parent ab799af866
commit 546bd0138c
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ class Library
.select { |path| File.directory? path }
.map { |path| Title.new path, "", cache }
.select { |title| !(title.entries.empty? && title.titles.empty?) }
.sort! { |a, b| a.title <=> b.title }
.sort! { |a, b| a.sort_title <=> b.sort_title }
.each do |title|
@title_hash[title.id] = title
@title_ids << title.id