Skip to content

Commit

Permalink
explicit locale in localeCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Feb 4, 2024
1 parent 0ed108a commit 68e6fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/pages/settings/languages-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 68e6fd8

Please sign in to comment.