Skip to content

Commit

Permalink
Merge pull request #1890 from jagmeetb/issue-1883
Browse files Browse the repository at this point in the history
Fix #1883 - Add descending sort to tooltips on match graphs
  • Loading branch information
howardchung authored Oct 13, 2018
2 parents fd1cbac + 5305964 commit 7633a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Visualizations/Graph/MatchGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CustomizedTooltip = ({ label, payload }) => (
(
<div value={data.value} className={`data ${i < 5 && 'isRadiant'}`} style={{ borderLeft: `8px solid ${data.color}` }}>
{data.dataKey}: {data.value}
</div>)).sort((a, b) => a.props.value < b.props.value)
</div>)).sort((a, b) => b.props.value - a.props.value)
}
</StyledCustomizedTooltip>
);
Expand Down

0 comments on commit 7633a87

Please sign in to comment.