Compare recent updates by both date and chapter number

This commit is contained in:
arkon 2020-02-16 17:08:07 -05:00
parent eb724336f5
commit 958dbfdfa5

View File

@ -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) }
}
}