More tie-breaking

This commit is contained in:
Alex Ling 2020-07-16 13:17:58 +00:00
parent 5be4f51d7e
commit 281f626e8c

View File

@ -299,7 +299,8 @@ class Title
end
sorter = ChapterSorter.new @entries.map { |e| e.title }
ary = @entries.sort do |a, b|
sorter.compare a.title, b.title
sorter.compare(a.title, b.title).or \
compare_numerically a.title, b.title
end
end