Sort Xonotic results by score

This commit is contained in:
DeathByDenim 2023-05-07 09:11:24 -04:00
parent 36699e81f5
commit 75b55979ac
Signed by: DeathByDenim
GPG Key ID: 4A475283D925365B
1 changed files with 1 additions and 0 deletions

View File

@ -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,