Case insensitive sort in Source tab (#7067)

# Conflicts:
#	app/src/main/java/eu/kanade/domain/source/interactor/GetEnabledSources.kt
This commit is contained in:
FourTOne5 2022-05-03 18:45:34 +06:00 committed by Jobobby04
parent 7c8d6bb282
commit 93a275cfc0

View File

@ -41,7 +41,7 @@ class GetEnabledSources(
sources sources
.filter { it.lang in enabledLanguages || it.id == LocalSource.ID } .filter { it.lang in enabledLanguages || it.id == LocalSource.ID }
.filterNot { it.id.toString() in disabledSources || it.id in BlacklistedSources.HIDDEN_SOURCES } .filterNot { it.id.toString() in disabledSources || it.id in BlacklistedSources.HIDDEN_SOURCES }
.sortedBy { it.name } .sortedWith(compareBy(String.CASE_INSENSITIVE_ORDER) { it.name })
.flatMap { .flatMap {
val flag = if ("${it.id}" in pinnedSourceIds) Pins.pinned else Pins.unpinned val flag = if ("${it.id}" in pinnedSourceIds) Pins.pinned else Pins.unpinned
// SY --> // SY -->