fix: Correct sorting method for group points in GroupDisplay component
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-11-10 14:31:14 +01:00
parent bf6df41fc2
commit b4099c6b88

View File

@@ -49,7 +49,7 @@
<div>
<EventCard title={group.name}>
<EventCardOutline>
{#each Object.entries(group.points ?? {}).toSorted((v1, v2) => v2[1] - v1[1]) as points}
{#each Object.entries(group.points ?? {}).sort((v1, v2) => v2[1] - v1[1]) as points}
{@const [teamId, point] = points}
{@const team = event.teams.find((t) => t.id.toString() === teamId)!!}
<EventTeamChip {team} score={point.toString()} />