Skip to content

Commit a205d4b

Browse files
committed
Merge branch 'fix-feature-indicator-sort'
2 parents c3e95c0 + 6ea270b commit a205d4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gui/src/renderer/components/main-view/FeatureIndicators.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ export default function FeatureIndicators(props: FeatureIndicatorsProps) {
160160
}, 0);
161161
});
162162

163+
const sortedIndicators = [...featureIndicators.current].sort((a, b) => a - b);
164+
163165
return (
164166
<StyledAccordion expanded={featureIndicatorsVisible && featureIndicators.current.length > 0}>
165167
<StyledFeatureIndicatorsContainer onClick={props.expandIsland} $expanded={props.expanded}>
@@ -170,7 +172,7 @@ export default function FeatureIndicators(props: FeatureIndicatorsProps) {
170172
<StyledFeatureIndicatorsWrapper
171173
ref={featureIndicatorsContainerRef}
172174
$expanded={props.expanded}>
173-
{featureIndicators.current.sort().map((indicator) => (
175+
{sortedIndicators.map((indicator) => (
174176
<StyledFeatureIndicatorLabel
175177
key={indicator.toString()}
176178
data-testid="feature-indicator"

0 commit comments

Comments
 (0)