Skip to content

Commit 6b6a4ac

Browse files
committed
sort the search results before showing
1 parent 71666fc commit 6b6a4ac

File tree

1 file changed

+2
-0
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments

1 file changed

+2
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
309309
}
310310
else -> {
311311
val files = searchFiles(searchText, currentPath)
312+
files.sortBy { it.getParentPath() }
313+
312314
if (lastSearchedText != searchText) {
313315
return@ensureBackgroundThread
314316
}

0 commit comments

Comments
 (0)