From cecf733c77740e2a032cb6ce27cfc96112de4e17 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 30 Mar 2022 08:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/book/local/ImportBookViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt b/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt index 22a1ca00b..cfb23fb1e 100644 --- a/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/book/local/ImportBookViewModel.kt @@ -58,7 +58,7 @@ class ImportBookViewModel(application: Application) : BaseViewModel(application) }.map { docList -> when (sort) { 2 -> docList.sortedWith( - compareBy({ !it.isDir }, { it.lastModified }, { it.name }) + compareBy({ !it.isDir }, { -it.lastModified }, { it.name }) ) 1 -> docList.sortedWith( compareBy({ !it.isDir }, { it.size }, { it.name })