浏览代码

Compare recent updates by both date and chapter number

arkon 5 年之前
父节点
当前提交
958dbfdfa5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt

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