Make local source default chapter sorting match file explorer behavior
Closes mihonapp/mihon#2225 (cherry picked from commit 7f56555d632508379037eb0fba4411079c27ad5b)
This commit is contained in:
parent
ddfdd9588e
commit
71548322e5
2 changed files with 2 additions and 2 deletions
|
|
@ -42,6 +42,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
|||
- Changed log in button text when processing tracker login ([@AntsyLich](https://github.com/AntsyLich)) ([#2069](https://github.com/mihonapp/mihon/pull/2069))
|
||||
- Disable reader's 'Keep screen on' setting by default ([@AntsyLich](https://github.com/AntsyLich)) ([#2095](https://github.com/mihonapp/mihon/pull/2095))
|
||||
- Update manga without chapters even if restricted by source ([@AntsyLich](https://github.com/AntsyLich)) ([#2224](https://github.com/mihonapp/mihon/pull/224))
|
||||
- Make local source default chapter sorting match file explorer behavior ([@AntsyLich](https://github.com/AntsyLich)) ([#2224](https://github.com/mihonapp/mihon/pull/224))
|
||||
|
||||
### Fixes
|
||||
- Fix Bangumi search results including novels ([@MajorTanya](https://github.com/MajorTanya)) ([#1885](https://github.com/mihonapp/mihon/pull/1885))
|
||||
|
|
|
|||
|
|
@ -354,8 +354,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue