mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-10 13:29:34 +02:00
Make local source default chapter sorting match file explorer behavior
Closes #2225
This commit is contained in:
@@ -261,8 +261,7 @@ actual class LocalSource(
|
||||
}
|
||||
}
|
||||
.sortedWith { c1, c2 ->
|
||||
val c = c2.chapter_number.compareTo(c1.chapter_number)
|
||||
if (c == 0) c2.name.compareToCaseInsensitiveNaturalOrder(c1.name) else c
|
||||
c2.name.compareToCaseInsensitiveNaturalOrder(c1.name)
|
||||
}
|
||||
|
||||
// Copy the cover from the first chapter found if not available
|
||||
|
Reference in New Issue
Block a user