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,