From 75b55979ac3b839977b4cbbb4236fba1c39e07a9 Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Sun, 7 May 2023 09:11:24 -0400 Subject: [PATCH] Sort Xonotic results by score --- website/js/xonscore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/js/xonscore.js b/website/js/xonscore.js index 7d4e718..c9fc8c9 100644 --- a/website/js/xonscore.js +++ b/website/js/xonscore.js @@ -35,6 +35,7 @@ async function xonoticGetScores() { break; case "end": if(round_stats.length > 0) { + round_stats = round_stats.sort((a,b) => +a["score!!"] < +b["score!!"]); stats.push({ map_name: map_name, duration_in_seconds: duration_in_seconds,