diff --git a/js/redux/tournamentApi.js b/js/redux/tournamentApi.js index 99e701e..572e325 100644 --- a/js/redux/tournamentApi.js +++ b/js/redux/tournamentApi.js @@ -80,7 +80,7 @@ function convertGroup(apiGroup) { return { id: apiGroup.id, number: apiGroup.number, - scores: apiGroup.group_scores, + scores: apiGroup.group_scores.sort((a, b) => b.group_points > a.group_points), matches: apiGroup.matches.sort((a, b) => a.position > b.position).map(match => convertMatch(match, true)) }; }