This commit is contained in:
Horis 2024-12-21 21:16:01 +08:00
parent 48b93a05b1
commit 1e205007f2

View File

@ -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 }