优化
This commit is contained in:
1 parent
82782fe29d
commit
63e5a7070f
1 file changed
+2
-1
@@ -349,7 +349,8 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
|
||||
if (showDuplicationSource) {
|
||||
data.sortedWith(
|
||||
compareBy<BookSourcePart> { getSourceHost(it.bookSourceUrl) == "#" }
|
||||
.thenBy { getSourceHost(it.bookSourceUrl) })
|
||||
.thenBy { getSourceHost(it.bookSourceUrl) }
|
||||
.thenByDescending { it.lastUpdateTime })
|
||||
} else if (sortAscending) {
|
||||
when (sort) {
|
||||
BookSourceSort.Weight -> data.sortedBy { it.weight }
|
||||
|
||||
Reference in new issue
Block a user