Skip to content

Commit c53f85d

Browse files
add sort() to legend wrapper
1 parent 84d64a9 commit c53f85d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/chartlegend/ChartLegendWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const ChartLegendWrapper = ({
133133
);
134134

135135
const listResources = useCallback(() => {
136-
return Object.keys(internalColorSet);
136+
return Object.keys(internalColorSet).sort();
137137
}, [internalColorSet]);
138138

139139
const chartLegendState = useMemo(

0 commit comments

Comments
 (0)