diff --git a/src/main/kotlin/app/revanced/patches/shared/settings/util/AbstractPreferenceScreen.kt b/src/main/kotlin/app/revanced/patches/shared/settings/util/AbstractPreferenceScreen.kt index a257af9a..a17b9c38 100644 --- a/src/main/kotlin/app/revanced/patches/shared/settings/util/AbstractPreferenceScreen.kt +++ b/src/main/kotlin/app/revanced/patches/shared/settings/util/AbstractPreferenceScreen.kt @@ -35,8 +35,8 @@ internal abstract class AbstractPreferenceScreen( return PreferenceScreen( key, StringResource("${key}_title", title), - preferences.sortedBy { it.title.value } + - categories.sortedBy { it.title }.map { it.transform() }, + preferences.sortedBy { it.title.value.lowercase() } + + categories.sortedBy { it.title.lowercase() }.map { it.transform() }, summary?.let { summary -> StringResource("${key}_summary", summary) } @@ -63,7 +63,7 @@ internal abstract class AbstractPreferenceScreen( return PreferenceCategory( key, StringResource("${key}_title", title), - preferences.sortedBy { it.title.value } + preferences.sortedBy { it.title.value.lowercase() } ) }