From 82a4f101bd2b6c7d32b48f0700ca0ece54b89a4c Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 30 Sep 2024 03:45:37 +0200 Subject: [PATCH] Properly sort languages --- src/util/language.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/language.tsx b/src/util/language.tsx index 0e6771fc..6e997b1a 100644 --- a/src/util/language.tsx +++ b/src/util/language.tsx @@ -74,5 +74,5 @@ export const langSortCmp = (a: string, b: string) => { if (a === 'en') return -1; if (b === 'en') return 1; - return aLang > bLang ? 1 : -1; + return aLang.localeCompare(bLang); };