Skip to content

Commit

Permalink
keep sorting broadcast players by rating
Browse files Browse the repository at this point in the history
Due to limitations of tablesort,
sorting by score also means players are sorted by ascending rating,
which is not great
  • Loading branch information
ornicar committed Aug 20, 2024
1 parent 02e8621 commit 99ef0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/analyse/src/study/relay/relayPlayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ const renderPlayers = (ctrl: RelayPlayers, players: RelayPlayer[]): VNode => {
'thead',
h('tr', [
h('th', 'Player'),
withRating ? h('th', !withScores && defaultSort, 'Elo') : undefined,
withScores ? h('th', defaultSort, 'Score') : h('th', 'Games'),
withRating ? h('th', defaultSort, 'Elo') : undefined,
withScores ? h('th', !withRating && defaultSort, 'Score') : h('th', 'Games'),
]),
),
h(
Expand Down

0 comments on commit 99ef0b8

Please sign in to comment.