From eb724336f5850f2f2cdb0081addce40971026733 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 16 Feb 2020 16:30:39 -0500 Subject: [PATCH] Additionally sort by chapter number in recent updates (fixes #2586) --- .../tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt | 4 +++- 1 file changed, 3 insertions(+), 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 b4e99693c3..ff1e3df5dc 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 @@ -63,7 +63,9 @@ class RecentChaptersPresenter( .groupByTo(map, { getMapKey(it.chapter.date_fetch) }) byDay.flatMap { val dateItem = DateItem(it.key) - it.value.map { RecentChapterItem(it.chapter, it.manga, dateItem) } + it.value + .sortedByDescending { it.chapter.chapter_number } + .map { RecentChapterItem(it.chapter, it.manga, dateItem) } } } .doOnNext {