mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
优化
This commit is contained in:
parent
48b93a05b1
commit
1e205007f2
@ -349,7 +349,8 @@ class BookSourceActivity : VMBaseActivity<ActivityBookSourceBinding, BookSourceV
|
|||||||
if (showDuplicationSource) {
|
if (showDuplicationSource) {
|
||||||
data.sortedWith(
|
data.sortedWith(
|
||||||
compareBy<BookSourcePart> { getSourceHost(it.bookSourceUrl) == "#" }
|
compareBy<BookSourcePart> { getSourceHost(it.bookSourceUrl) == "#" }
|
||||||
.thenBy { getSourceHost(it.bookSourceUrl) })
|
.thenBy { getSourceHost(it.bookSourceUrl) }
|
||||||
|
.thenByDescending { it.lastUpdateTime })
|
||||||
} else if (sortAscending) {
|
} else if (sortAscending) {
|
||||||
when (sort) {
|
when (sort) {
|
||||||
BookSourceSort.Weight -> data.sortedBy { it.weight }
|
BookSourceSort.Weight -> data.sortedBy { it.weight }
|
||||||
|
Loading…
Reference in New Issue
Block a user