mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 01:48:24 +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 {
|
||||
val dateItem = DateItem(it.key)
|
||||
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) }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user