Make local source default chapter sorting match file explorer behavior

Closes #2225
This commit is contained in:
AntsyLich
2025-07-27 22:36:55 +06:00
parent 8636b7a685
commit 7f56555d63
2 changed files with 2 additions and 2 deletions

View File

@@ -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