summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIurco Tiberiu-Iulian <39162045+tiberiuiurco@users.noreply.github.com>2024-06-12 15:30:59 +0900
committerGitHub <noreply@github.com>2024-06-12 06:30:59 +0000
commit0165aff45dddb9623535ef1a6b8d261edee1d716 (patch)
tree528519d139630c0b384ee87bcf80760b971da4c6
parent0ade97639757f15979193013640cf73ee41ff420 (diff)
#1054 language sorting by name (#1055)
-rwxr-xr-xext/js/pages/settings/languages-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/pages/settings/languages-controller.js b/ext/js/pages/settings/languages-controller.js
index 7c795150..707230be 100755
--- a/ext/js/pages/settings/languages-controller.js
+++ b/ext/js/pages/settings/languages-controller.js
@@ -30,7 +30,7 @@ export class LanguagesController {
/** */
async prepare() {
const languages = await this._settingsController.application.api.getLanguageSummaries();
- languages.sort((a, b) => a.iso.localeCompare(b.iso, 'en'));
+ languages.sort((a, b) => a.name.localeCompare(b.name, 'en'));
this._fillSelect(languages);
}