Sort by game id

This commit is contained in:
Peter 2025-10-29 09:08:07 -05:00
parent 642dc6e673
commit 1cf70a9c88

View File

@ -25,7 +25,8 @@
</tr> </tr>
</thead> </thead>
<tbody :id="`matchup-${index}`"> <tbody :id="`matchup-${index}`">
<tr v-for="game in matchup" :key="game.id" :id="`game-id-${game.id}`"> <tr v-for="game in matchup.sort((g1, g2) => g1.id - g2.id)" :key="game.id"
:id="`game-id-${game.id}`">
<td> <td>
<RouterLink <RouterLink
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.away_team.abbrev } }" :to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.away_team.abbrev } }"