Skip to content

Commit

Permalink
Fix sorting without compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed Jul 20, 2024
1 parent 0e0d5a4 commit 9fdc906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/COEPremiumChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const COEPremiumChart = ({ data }: COEPremiumChartProps) => {
<Tooltip />
<Legend />
{Object.entries(filterCategories)
.sort()
.sort(([a], [b]) => a.localeCompare(b))
.map(
([category, value], index) =>
value && (
Expand Down

0 comments on commit 9fdc906

Please sign in to comment.