sort the search results before showing

This commit is contained in:
tibbi 2020-06-19 21:16:01 +02:00
parent 71666fca2e
commit 6b6a4acb58
1 changed files with 2 additions and 0 deletions

View File

@ -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
} }