sort the search results before showing
This commit is contained in:
parent
71666fca2e
commit
6b6a4acb58
|
@ -309,6 +309,8 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
val files = searchFiles(searchText, currentPath)
|
val files = searchFiles(searchText, currentPath)
|
||||||
|
files.sortBy { it.getParentPath() }
|
||||||
|
|
||||||
if (lastSearchedText != searchText) {
|
if (lastSearchedText != searchText) {
|
||||||
return@ensureBackgroundThread
|
return@ensureBackgroundThread
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue