From 958dbfdfa5c9b33d136b00f3f1f006bf3dc651cf Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 16 Feb 2020 17:08:07 -0500 Subject: [PATCH] Compare recent updates by both date and chapter number --- .../tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt index ff1e3df5d..8c7f8b6e8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt @@ -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) } } }