Skip to content

Commit

Permalink
[dashboard] fix charts sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
ioj4 committed Jan 11, 2025
1 parent ae4e3e9 commit 8f1d657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dashboard/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ branchesWrap.append(
}),
);

const byValue = ([valueA], [valueB]) => (valueA > valueB ? -1 : valueA < valueB ? 1 : 0);
const byValue = ([, valueA], [, valueB]) => (valueA > valueB ? -1 : valueA < valueB ? 1 : 0);

const sortedPlatformCounts = Object.entries(platformCounts).sort(byValue);
platformsWrap.append(
Expand Down

0 comments on commit 8f1d657

Please sign in to comment.