Sort language lists by the localized language name (#2991)
This commit is contained in:
parent
f3962058dc
commit
11de43f470
|
@ -82,7 +82,7 @@ fun getLocaleList(initialLanguage: String): List<Locale> {
|
|||
it.country.isNullOrEmpty() &&
|
||||
it.script.isNullOrEmpty() &&
|
||||
it.variant.isNullOrEmpty()
|
||||
}
|
||||
}.sortedBy { it.displayName }
|
||||
)
|
||||
ensureLanguageIsFirst(locales, initialLanguage)
|
||||
return locales
|
||||
|
|
Loading…
Reference in New Issue