reverse score sort
This commit is contained in:
parent
0502848861
commit
0b040d409a
1 changed files with 1 additions and 1 deletions
2
game.js
2
game.js
|
@ -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(', '));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue