优化
This commit is contained in:
@@ -58,7 +58,7 @@ class ImportBookViewModel(application: Application) : BaseViewModel(application)
|
|||||||
}.map { docList ->
|
}.map { docList ->
|
||||||
when (sort) {
|
when (sort) {
|
||||||
2 -> docList.sortedWith(
|
2 -> docList.sortedWith(
|
||||||
compareBy({ !it.isDir }, { it.lastModified }, { it.name })
|
compareBy({ !it.isDir }, { -it.lastModified }, { it.name })
|
||||||
)
|
)
|
||||||
1 -> docList.sortedWith(
|
1 -> docList.sortedWith(
|
||||||
compareBy({ !it.isDir }, { it.size }, { it.name })
|
compareBy({ !it.isDir }, { it.size }, { it.name })
|
||||||
|
|||||||
Reference in New Issue
Block a user