书架增加按作者排序 (#4574)
This commit is contained in:
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 }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user