From cafd3a37dfc4860578b115cf17063e5dcb272469 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 14 Oct 2021 12:19:13 +0200 Subject: [PATCH] Sort languages in settings lists --- linphone-app/ui/views/App/Settings/SettingsUi.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linphone-app/ui/views/App/Settings/SettingsUi.js b/linphone-app/ui/views/App/Settings/SettingsUi.js index c5afb8114..0f83a6824 100644 --- a/linphone-app/ui/views/App/Settings/SettingsUi.js +++ b/linphone-app/ui/views/App/Settings/SettingsUi.js @@ -51,7 +51,9 @@ function getAvailableLocales () { key: qsTr('systemLocale'), value: '' }].concat(locales.sort(function (a, b) { - return a > b + if( a.key < b.key ) return -1; + if( a.key > b.key ) return 1; + return 0; })) }