diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-14 12:19:55 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-14 12:19:55 +0200 |
commit | d6cf288058458ea498a8d01a658340531cee5d14 (patch) | |
tree | 0dc7a41cbbcbd7968302e98434b95db8465c6687 /views/games_active.pug | |
parent | 22d96bbd8d2f3c63328e0beb4e192eb9bf3d5ce3 (diff) | |
download | server-d6cf288058458ea498a8d01a658340531cee5d14.tar.gz |
Sort "recently finished" list by mtime.
Diffstat (limited to 'views/games_active.pug')
-rw-r--r-- | views/games_active.pug | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/views/games_active.pug b/views/games_active.pug index f47ae6e..f8f4111 100644 --- a/views/games_active.pug +++ b/views/games_active.pug @@ -6,6 +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) doctype html html head |