Sort language lists by the localized language name (#2991)
This commit is contained in:
parent
f3962058dc
commit
11de43f470
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue