mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Fix Search results order
This commit is contained in:
parent
988e13c4d9
commit
0653a45953
@ -57,6 +57,7 @@ class ZimSearchResultGenerator @Inject constructor() : SearchResultGenerator {
|
||||
}
|
||||
.distinct()
|
||||
.toList()
|
||||
.sortedBy(ZimSearchResultListItem::value)
|
||||
|
||||
private suspend fun <T> createList(readSearchResult: suspend () -> T?): List<T> {
|
||||
return mutableListOf<T>().apply {
|
||||
|
Loading…
x
Reference in New Issue
Block a user