Case insensitive sort in Source tab (#7067)
# Conflicts: # app/src/main/java/eu/kanade/domain/source/interactor/GetEnabledSources.kt
This commit is contained in:
parent
7c8d6bb282
commit
93a275cfc0
@ -41,7 +41,7 @@ class GetEnabledSources(
|
||||
sources
|
||||
.filter { it.lang in enabledLanguages || it.id == LocalSource.ID }
|
||||
.filterNot { it.id.toString() in disabledSources || it.id in BlacklistedSources.HIDDEN_SOURCES }
|
||||
.sortedBy { it.name }
|
||||
.sortedWith(compareBy(String.CASE_INSENSITIVE_ORDER) { it.name })
|
||||
.flatMap {
|
||||
val flag = if ("${it.id}" in pinnedSourceIds) Pins.pinned else Pins.unpinned
|
||||
// SY -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user