|
|
@ -61,7 +61,7 @@ class ImportBookViewModel(application: Application) : BaseViewModel(application) |
|
|
|
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 }) |
|
|
|
) |
|
|
|
) |
|
|
|
else -> docList.sortedWith( |
|
|
|
else -> docList.sortedWith( |
|
|
|
compareBy({ !it.isDir }, { it.name }) |
|
|
|
compareBy({ !it.isDir }, { it.name }) |
|
|
|