diff --git a/js/redux/tournamentApi.js b/js/redux/tournamentApi.js index c2478af..99e701e 100644 --- a/js/redux/tournamentApi.js +++ b/js/redux/tournamentApi.js @@ -40,7 +40,7 @@ export function getTournamentMatches(tournamentId, successCallback, errorCallbac } getRequest(getState(), '/tournaments/' + tournamentId + '/matches' + matchFilter) .then(response => { - successCallback(response.status, response.data.map(match => convertMatch(match))); + successCallback(response.status, response.data.sort((a, b) => a.position > b.position).map(match => convertMatch(match))); }) .catch(errorCallback); }