fix augmentation order when set to alphabetically

This commit is contained in:
Dominik Winter 2022-01-25 18:21:09 +01:00
parent 07fe3c1906
commit e29eceb2bd

@ -26,7 +26,7 @@ export function InstalledAugmentations(): React.ReactElement {
if (Settings.OwnedAugmentationsOrder === OwnedAugmentationsOrderSetting.Alphabetically) { if (Settings.OwnedAugmentationsOrder === OwnedAugmentationsOrderSetting.Alphabetically) {
sourceAugs.sort((aug1, aug2) => { sourceAugs.sort((aug1, aug2) => {
return aug1.name <= aug2.name ? -1 : 1; return aug1.name.localeCompare(aug2.name);
}); });
} }