pull/1740/head
kunfei 3 years ago
parent e5fc3250df
commit cecf733c77
  1. 2
      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 })

Loading…
Cancel
Save