瀏覽代碼

Additionally sort by chapter number in recent updates (fixes #2586)

arkon 5 年之前
父節點
當前提交
eb724336f5
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersPresenter.kt

+ 3 - 1
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 {