Make local source default chapter sorting match file explorer behavior

Closes #2225

(cherry picked from commit 7f56555d632508379037eb0fba4411079c27ad5b)
This commit is contained in:
AntsyLich
2025-07-27 22:21:55 +05:45
committed by NGB-Was-Taken
parent aaff472317
commit 4cdead8006
@@ -352,8 +352,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