Soert group scores by group points
This commit is contained in:
parent
63414a0507
commit
5625455e5e
|
|
@ -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,
|
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))
|
matches: apiGroup.matches.sort((a, b) => a.position > b.position).map(match => convertMatch(match, true))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue