diff --git a/src/Faction/ui/FactionsRoot.tsx b/src/Faction/ui/FactionsRoot.tsx index 45e750232..ccd57d556 100644 --- a/src/Faction/ui/FactionsRoot.tsx +++ b/src/Faction/ui/FactionsRoot.tsx @@ -79,6 +79,9 @@ export function FactionsRoot(props: IProps): React.ReactElement { (augmentation: string) => !player.hasAugmentation(augmentation) ).length; } + let allJoinedFactions = props.player.factions + allJoinedFactions = allJoinedFactions.sort((a, b) => + allJoinedFactions.indexOf(a) - allJoinedFactions.indexOf(b)); return ( @@ -92,11 +95,11 @@ export function FactionsRoot(props: IProps): React.ReactElement { Factions you have joined: - {(props.player.factions.length > 0 && ( + {(allJoinedFactions.length > 0 && ( - {props.player.factions.map((faction: string) => ( + {allJoinedFactions.map((faction: string) => (