From fff1160df5012fbc4c3ec65295ad30cafd37472f Mon Sep 17 00:00:00 2001 From: Jason Yao Date: Sat, 28 Aug 2021 22:51:10 -0400 Subject: [PATCH] revert things change unexpectedly --- .../io/legado/app/ui/book/source/manage/BookSourceActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt index 61f883cde..d228fa66f 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt @@ -237,7 +237,7 @@ class BookSourceActivity : VMBaseActivity data.sortedBy { it.bookSourceUrl } - Sort.Update -> data.sortedBy { it.lastUpdateTime } + Sort.Update -> data.sortedByDescending { it.lastUpdateTime } Sort.Respond -> data.sortedBy { it.respondTime } Sort.Enable -> data.sortedWith { o1, o2 -> var sort = -o1.enabled.compareTo(o2.enabled) @@ -254,7 +254,7 @@ class BookSourceActivity : VMBaseActivity data.sortedByDescending { it.bookSourceUrl } - Sort.Update -> data.sortedByDescending { it.lastUpdateTime } + Sort.Update -> data.sortedBy { it.lastUpdateTime } Sort.Respond -> data.sortedByDescending { it.respondTime } Sort.Enable -> data.sortedWith { o1, o2 -> var sort = o1.enabled.compareTo(o2.enabled)