mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 13:03:22 +00:00
preference: Sort spellchecker language names with localeCompare.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user