sort the search results before showing

This commit is contained in:
tibbi 2020-06-19 21:16:01 +02:00
parent 71666fca2e
commit 6b6a4acb58

View file

@ -309,6 +309,8 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
}
else -> {
val files = searchFiles(searchText, currentPath)
files.sortBy { it.getParentPath() }
if (lastSearchedText != searchText) {
return@ensureBackgroundThread
}