mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
More tie-breaking
This commit is contained in:
parent
5be4f51d7e
commit
281f626e8c
@ -299,7 +299,8 @@ class Title
|
|||||||
end
|
end
|
||||||
sorter = ChapterSorter.new @entries.map { |e| e.title }
|
sorter = ChapterSorter.new @entries.map { |e| e.title }
|
||||||
ary = @entries.sort do |a, b|
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user