mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-07 22:31:17 -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()
|
.distinct()
|
||||||
.toList()
|
.toList()
|
||||||
|
.sortedBy(ZimSearchResultListItem::value)
|
||||||
|
|
||||||
private suspend fun <T> createList(readSearchResult: suspend () -> T?): List<T> {
|
private suspend fun <T> createList(readSearchResult: suspend () -> T?): List<T> {
|
||||||
return mutableListOf<T>().apply {
|
return mutableListOf<T>().apply {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user