Skip to content

Commit

Permalink
Follow server sort order
Browse files Browse the repository at this point in the history
Enables alternate sorting controlled on the entries API (servo/scoring)
  • Loading branch information
andrejpk authored Dec 29, 2024
1 parent 9244b31 commit 27d06e9
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 27d06e9

Please sign in to comment.