Skip to content

Commit

Permalink
Merge pull request #56 from RopeScore/apk-entry-server-sort-order
Browse files Browse the repository at this point in the history
Follow server sort order
  • Loading branch information
andrejpk authored Dec 29, 2024
2 parents 9244b31 + 27d06e9 commit fad3c9f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/servo/Entries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ const currentHeat = computed(() => data.value?.Session.CurrentHeatNumber ?? 1)
const entries = computed(() =>
data.value
? [...data.value.Entries]
.sort((a, b) => {
if (a.HeatNumber !== b.HeatNumber) return (a.HeatNumber ?? Infinity) - (b.HeatNumber ?? Infinity)
else return a.Participants[0].FirstName.localeCompare(b.Participants[0].FirstName)
})
? [...data.value.Entries] // server owns entry sort order
: []
)
Expand Down

0 comments on commit fad3c9f

Please sign in to comment.