Merge branch 'test' into 'master'

Fix group score match order

See merge request turniere/turniere-frontend!35
This commit is contained in:
Jonas Seydel 2022-07-02 13:21:08 +00:00
commit 01dc2a9149
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function convertGroup(apiGroup) {
return { return {
id: apiGroup.id, id: apiGroup.id,
number: apiGroup.number, number: apiGroup.number,
scores: apiGroup.group_scores.sort((a, b) => b.group_points > a.group_points), scores: apiGroup.group_scores.sort((a, b) => b.group_points > a.group_points || b.difference_in_points > a.difference_in_points || b.scored_points > a.scored_points),
matches: apiGroup.matches.sort((a, b) => a.position > b.position).map(match => convertMatch(match, true)) matches: apiGroup.matches.sort((a, b) => a.position > b.position).map(match => convertMatch(match, true))
}; };
} }