From 68e6fd87b97082ad754e32958fef56c75ecd93df Mon Sep 17 00:00:00 2001 From: Stefan Vukovic Date: Sun, 4 Feb 2024 21:32:05 +0100 Subject: [PATCH] explicit locale in localeCompare --- ext/js/pages/settings/languages-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/pages/settings/languages-controller.js b/ext/js/pages/settings/languages-controller.js index 68dbab1e76..d90095d831 100755 --- a/ext/js/pages/settings/languages-controller.js +++ b/ext/js/pages/settings/languages-controller.js @@ -36,7 +36,7 @@ export class LanguagesController { async prepare() { await this._updateOptions(); this._languages = await this._settingsController.application.api.getLanguages(); - this._languages.sort((a, b) => a.iso.localeCompare(b.iso)); + this._languages.sort((a, b) => a.iso.localeCompare(b.iso, 'en')); this._fillSelect(); }