From 5378e8cc389e6ce7fa37350a01a4131ad107f827 Mon Sep 17 00:00:00 2001 From: jaype87 Date: Fri, 6 May 2022 00:44:05 +0200 Subject: [PATCH] sort and color grafting list --- src/PersonObjects/Grafting/ui/GraftingRoot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PersonObjects/Grafting/ui/GraftingRoot.tsx b/src/PersonObjects/Grafting/ui/GraftingRoot.tsx index 3b9ff5738..72320b181 100644 --- a/src/PersonObjects/Grafting/ui/GraftingRoot.tsx +++ b/src/PersonObjects/Grafting/ui/GraftingRoot.tsx @@ -95,9 +95,9 @@ export const GraftingRoot = (): React.ReactElement => { {getGraftingAvailableAugs(player).length > 0 ? ( - {getGraftingAvailableAugs(player).map((k, i) => ( + {getGraftingAvailableAugs(player).sort((a, b) => GraftableAugmentations[a].cost - GraftableAugmentations[b].cost).map((k, i) => ( setSelectedAug(k)} selected={selectedAug === k}> - {k} + {k} ))}