From 99ef0b80119710d6b170865e3199a3901fcc16b1 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Tue, 20 Aug 2024 09:28:41 +0200 Subject: [PATCH] keep sorting broadcast players by rating Due to limitations of tablesort, sorting by score also means players are sorted by ascending rating, which is not great --- ui/analyse/src/study/relay/relayPlayers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/analyse/src/study/relay/relayPlayers.ts b/ui/analyse/src/study/relay/relayPlayers.ts index b405869ff267d..975c1f0d567e0 100644 --- a/ui/analyse/src/study/relay/relayPlayers.ts +++ b/ui/analyse/src/study/relay/relayPlayers.ts @@ -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(