revert to the previous way of sorting by path, do not use parent path
This commit is contained in:
parent
0bfe621a8f
commit
8e8cb0bd0f
1 changed files with 1 additions and 1 deletions
|
@ -887,7 +887,7 @@ fun Context.getDirectorySortingValue(media: ArrayList<Medium>, path: String, nam
|
|||
val sorting = config.directorySorting
|
||||
val sorted = when {
|
||||
sorting and SORT_BY_NAME != 0 -> return name
|
||||
sorting and SORT_BY_PATH != 0 -> return path.getParentPath()
|
||||
sorting and SORT_BY_PATH != 0 -> return path
|
||||
sorting and SORT_BY_SIZE != 0 -> return size.toString()
|
||||
sorting and SORT_BY_DATE_MODIFIED != 0 -> media.sortedBy { it.modified }
|
||||
sorting and SORT_BY_DATE_TAKEN != 0 -> media.sortedBy { it.taken }
|
||||
|
|
Loading…
Reference in a new issue