From 11de43f470456b937f302798b0129bb082dae406 Mon Sep 17 00:00:00 2001 From: Levi Bard Date: Mon, 5 Dec 2022 14:49:09 +0100 Subject: [PATCH] Sort language lists by the localized language name (#2991) --- app/src/main/java/com/keylesspalace/tusky/util/LocaleUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/util/LocaleUtils.kt b/app/src/main/java/com/keylesspalace/tusky/util/LocaleUtils.kt index 1cc3f3be..316e14d0 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/LocaleUtils.kt +++ b/app/src/main/java/com/keylesspalace/tusky/util/LocaleUtils.kt @@ -82,7 +82,7 @@ fun getLocaleList(initialLanguage: String): List { it.country.isNullOrEmpty() && it.script.isNullOrEmpty() && it.variant.isNullOrEmpty() - } + }.sortedBy { it.displayName } ) ensureLanguageIsFirst(locales, initialLanguage) return locales