From ad14a96349c7edac22588858f5fe2279fec899b1 Mon Sep 17 00:00:00 2001 From: Kevin Thomas Date: Sun, 25 Jan 2026 23:15:28 -0500 Subject: [PATCH] Code Update -Kevin Thomas, kt3054 --- static/scoreboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/scoreboard.js b/static/scoreboard.js index 34ce2009..b3c256fb 100644 --- a/static/scoreboard.js +++ b/static/scoreboard.js @@ -32,7 +32,9 @@ function increase_score(id){ contentType: "application/json; charset=utf-8", data : JSON.stringify(team_id), success: function(result){ - + var updated = result.scoreboard; + updated.sort(function(a, b){ return b.score - a.score; }); + display_scoreboard(updated); }, error: function(request, status, error){ console.log("Error");