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

This commit is contained in:
niuhb
2025-01-25 17:19:51 +08:00
committed by GitHub
parent 120f8012fc
commit cc19e3fa8d
12 changed files with 23 additions and 2 deletions
@@ -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 }
}