优化
This commit is contained in:
1 parent
e532f2c6fe
commit
cb33cffa46
1 file changed
+1
-1
@@ -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 })
|
||||
|
||||
Reference in new issue
Block a user