preference: Sort spellchecker language names with localeCompare.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-08-22 16:08:15 -07:00
parent f85f05d66b
commit 4867fc672a

View File

@@ -634,7 +634,7 @@ export function initGeneralSection({$root}: GeneralSectionProperties): void {
}
languagePairs = new Map(
[...languagePairs].sort((a, b) => (a[0] < b[0] ? -1 : 1)),
[...languagePairs].sort((a, b) => a[0].localeCompare(b[1])),
);
const tagField: HTMLInputElement = $root.querySelector(