From e5c2e7777547d83494a61c23f441808b3dfd9900 Mon Sep 17 00:00:00 2001 From: 08draven Date: Mon, 4 Nov 2024 20:43:55 -0500 Subject: [PATCH] reverse score sort --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index d05b098..4914911 100644 --- a/game.js +++ b/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(', ')); }