From b2fe9d7d4d11011a58eb93139a4a201c56f8154b Mon Sep 17 00:00:00 2001 From: len Date: Thu, 3 Mar 2016 20:16:28 +0100 Subject: [PATCH] Fix #196 --- .../kanade/tachiyomi/ui/recent/RecentChaptersPresenter.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersPresenter.kt index a502a42c5..e797afb2c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/RecentChaptersPresenter.kt @@ -212,10 +212,10 @@ class RecentChaptersPresenter : BasePresenter() { // Group chapters by the date they were fetched on a ordered map. .flatMap { recentItems -> Observable.from(recentItems) - .toMultimap { - recent -> - (getMapKey(recent.chapter.date_fetch)) - } + .toMultimap( + { getMapKey(it.chapter.date_fetch) }, + { it }, + { TreeMap { d1, d2 -> d2.compareTo(d1) } }) } // Add every day and all its chapters to a single list. .map { recentItems ->