Bläddra i källkod

Compare recent updates by both date and chapter number

arkon 5 år sedan
förälder
incheckning
958dbfdfa5

+ 1 - 1
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) }
                     }
                 }