From 293b433cc3c93340364613f41ff7446b9f75808f Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sun, 11 Jan 2015 09:34:36 -0500 Subject: [PATCH] Order by create_dt descending, not game_id descending. --- xonstat/views/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonstat/views/helpers.py b/xonstat/views/helpers.py index d8b3211..f8853a2 100644 --- a/xonstat/views/helpers.py +++ b/xonstat/views/helpers.py @@ -99,7 +99,7 @@ def recent_games_q(server_id=None, map_id=None, player_id=None, filter(Game.map_id==Map.map_id).\ filter(Game.game_id==PlayerGameStat.game_id).\ filter(Game.game_type_cd==GameType.game_type_cd).\ - order_by(expr.desc(Game.game_id)) + order_by(expr.desc(Game.create_dt)) # the various filters provided get tacked on to the query if server_id is not None: -- 2.39.2