From: Ant Zucaro Date: Sun, 11 Jan 2015 14:34:36 +0000 (-0500) Subject: Order by create_dt descending, not game_id descending. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=293b433cc3c93340364613f41ff7446b9f75808f;p=xonotic%2Fxonstat.git Order by create_dt descending, not game_id descending. --- 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: