From 8c039a28884fe7c8c65e03d5732683d2f621af3f Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Sun, 29 May 2022 13:52:28 +0100 Subject: [PATCH] fixed scoreboard ordering --- scripts/launch.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/launch.js b/scripts/launch.js index 1ab41aa..3085281 100644 --- a/scripts/launch.js +++ b/scripts/launch.js @@ -100,12 +100,7 @@ function scoreBoard() { } function twoDimensionalSort(a, b) { - if (a[0] === b[0]) { - return 0; - } - else { - return (a[0] > b[0]) ? -1 : 1; - } + return b[0] - a[0]; } document.addEventListener("DOMContentLoaded", load);