Sort matches in fullscreen view

This commit is contained in:
Thor77 2019-11-08 23:26:44 +01:00
parent 4aa3f65452
commit a60a343db7
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}