mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
sort the search results before showing
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user