mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 03:01:49 +01:00
Compare recent updates by both date and chapter number
This commit is contained in:
parent
eb724336f5
commit
958dbfdfa5
@ -64,7 +64,7 @@ class RecentChaptersPresenter(
|
|||||||
byDay.flatMap {
|
byDay.flatMap {
|
||||||
val dateItem = DateItem(it.key)
|
val dateItem = DateItem(it.key)
|
||||||
it.value
|
it.value
|
||||||
.sortedByDescending { it.chapter.chapter_number }
|
.sortedWith(compareBy({ it.chapter.date_fetch }, { it.chapter.chapter_number })).asReversed()
|
||||||
.map { RecentChapterItem(it.chapter, it.manga, dateItem) }
|
.map { RecentChapterItem(it.chapter, it.manga, dateItem) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user