From a3baa02379ebf758b5a5a937ecee335c0e780e4c Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 19 Nov 2018 21:22:23 +0100 Subject: [PATCH] Fix an issue where we would sort the wrong way when browsing history. --- www/js/remoteglot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index d89da33..1e89929 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -796,7 +796,7 @@ var update_refutation_lines = function() { } var invert = (toplay === 'B'); - if (current_display_line && current_display_move % 2 == 0) { + if (current_display_line && current_display_move % 2 == 0 && !current_display_line_is_history) { invert = !invert; } moves = moves.sort(function(a, b) { return compare_by_score(refutation_lines, invert, a, b) }); -- 2.39.2