Sort Xonotic results by score
This commit is contained in:
parent
36699e81f5
commit
75b55979ac
|
@ -35,6 +35,7 @@ async function xonoticGetScores() {
|
||||||
break;
|
break;
|
||||||
case "end":
|
case "end":
|
||||||
if(round_stats.length > 0) {
|
if(round_stats.length > 0) {
|
||||||
|
round_stats = round_stats.sort((a,b) => +a["score!!"] < +b["score!!"]);
|
||||||
stats.push({
|
stats.push({
|
||||||
map_name: map_name,
|
map_name: map_name,
|
||||||
duration_in_seconds: duration_in_seconds,
|
duration_in_seconds: duration_in_seconds,
|
||||||
|
|
Reference in New Issue