🐛 Fixed player-sorting-thing

This commit is contained in:
Mawoka
2022-10-05 18:56:57 +02:00
parent a2fd473a1d
commit 5c432b1fd9
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -50,7 +50,9 @@
}
$: data = sortObjectbyValue(data);
$: player_names = Object.keys(data);
$: player_names = Object.keys(data).sort(function (a, b) {
return data[b] - data[a];
});
let show_new_score_clicked = false;