书架增加按作者排序 (#4574)

This commit is contained in:
niuhb authored and GitHub committed 2025-01-25 17:19:51 +08:00
1 parent 120f8012fc
commit cc19e3fa8d
12 files changed
+23 -2

No files matched your search

@@ -178,6 +178,10 @@ class BooksFragment() : BaseFragment(R.layout.fragment_books),
4 -> list.sortedByDescending {
max(it.latestChapterTime, it.durChapterTime)
}
// 按作者排序
5 -> list.sortedWith { o1, o2 ->
o1.author.cnCompare(o2.author)
}
else -> list.sortedByDescending { it.durChapterTime }
}