From e29eceb2bd604e9651214b5cd8667d5f3820e3ee Mon Sep 17 00:00:00 2001 From: Dominik Winter Date: Tue, 25 Jan 2022 18:21:09 +0100 Subject: [PATCH] fix augmentation order when set to alphabetically --- src/Augmentation/ui/InstalledAugmentations.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Augmentation/ui/InstalledAugmentations.tsx b/src/Augmentation/ui/InstalledAugmentations.tsx index 6533787aa..d0251c0c5 100644 --- a/src/Augmentation/ui/InstalledAugmentations.tsx +++ b/src/Augmentation/ui/InstalledAugmentations.tsx @@ -26,7 +26,7 @@ export function InstalledAugmentations(): React.ReactElement { if (Settings.OwnedAugmentationsOrder === OwnedAugmentationsOrderSetting.Alphabetically) { sourceAugs.sort((aug1, aug2) => { - return aug1.name <= aug2.name ? -1 : 1; + return aug1.name.localeCompare(aug2.name); }); }