diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-15 11:19:13 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-15 11:19:13 +0200 |
commit | 8ac21f98f7bcaaf3240e58cd2964c4aa0f69e303 (patch) | |
tree | 92c042ceaccf502343216961701af8a73411ac4b /views | |
parent | acfbe3ef89f617129f3739578375018f768c6017 (diff) | |
download | server-8ac21f98f7bcaaf3240e58cd2964c4aa0f69e303.tar.gz |
Fix sorting of recently finished games.
Diffstat (limited to 'views')
-rw-r--r-- | views/games_active.pug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/games_active.pug b/views/games_active.pug index f8f4111..7da3b26 100644 --- a/views/games_active.pug +++ b/views/games_active.pug @@ -6,7 +6,7 @@ - let solo_games = games.filter(game => game.status === 1 && !game.is_opposed) - let finished_games = games.filter(game => game.status === 2) - move_games.sort((a,b)=> a.mtime < b.mtime ? -1 : a.mtime > b.mtime ? 1 : 0) -- finished_games.sort((a,b)=> a.mtime < b.mtime ? -1 : a.mtime > b.mtime ? 1 : 0) +- finished_games.sort((b,a)=> a.mtime < b.mtime ? -1 : a.mtime > b.mtime ? 1 : 0) doctype html html head |