mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(library): Sort by latest chapter is not working properly
`last_update` is now when entry chapter list is changed instead of when is the latest entry uploaded. It is now replaced by LibraryManga's latestUpdate Fixes GH-309
This commit is contained in:
parent
6c40fe92be
commit
b3e69bdb28
2 changed files with 6 additions and 2 deletions
|
@ -658,7 +658,7 @@ class LibraryPresenter(
|
|||
category.mangaSort != null -> {
|
||||
var sort = when (category.sortingMode() ?: LibrarySort.Title) {
|
||||
LibrarySort.Title -> sortAlphabetical(i1, i2)
|
||||
LibrarySort.LatestChapter -> i2.manga.last_update.compareTo(i1.manga.last_update)
|
||||
LibrarySort.LatestChapter -> i2.manga.latestUpdate.compareTo(i1.manga.latestUpdate)
|
||||
LibrarySort.Unread -> when {
|
||||
i1.manga.unread == i2.manga.unread -> 0
|
||||
i1.manga.unread == 0 -> if (category.isAscending()) 1 else -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue