reverse score sort

This commit is contained in:
biglyderv 2024-11-25 14:14:21 -05:00
parent 0502848861
commit 0b040d409a

View file

@ -34,7 +34,7 @@ class Game extends GameBasic {
let s = Object.entries(scores).sort((a, b) => b[1] - a[1]);
for (let x in s) {
let jk = jason.filter(y => y.ip == s[x][0]).map(y => y.ko).sort();
let jk = jason.filter(y => y.ip == s[x][0]).map(y => y.ko).sort((a,b) => b - a);
s[x].push(jk.join(', '));
}