|
@@ -108,7 +108,7 @@ open class GlobalSearchPresenter(
|
|
|
return sourceManager.getCatalogueSources()
|
|
|
.filter { it.lang in languages }
|
|
|
.filterNot { it.id.toString() in disabledSourceIds }
|
|
|
- .sortedWith(compareBy({ it.id.toString() !in pinnedSourceIds }, { "${it.name} (${it.lang})" }))
|
|
|
+ .sortedWith(compareBy({ it.id.toString() !in pinnedSourceIds }, { "${it.name.toLowerCase()} (${it.lang})" }))
|
|
|
}
|
|
|
|
|
|
private fun getSourcesToQuery(): List<CatalogueSource> {
|
|
@@ -188,7 +188,7 @@ open class GlobalSearchPresenter(
|
|
|
{ it.results.isNullOrEmpty() },
|
|
|
// Same as initial sort, i.e. pinned first then alphabetically
|
|
|
{ it.source.id.toString() !in pinnedSourceIds },
|
|
|
- { "${it.source.name} (${it.source.lang})" }
|
|
|
+ { "${it.source.name.toLowerCase()} (${it.source.lang})" }
|
|
|
)
|
|
|
)
|
|
|
}
|