- order queried events by event_id
authorTony Mack <tmack@cs.princeton.edu>
Wed, 29 Nov 2006 22:14:32 +0000 (22:14 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 29 Nov 2006 22:14:32 +0000 (22:14 +0000)
PLC/Events.py

index 774aae9..916bf7d 100644 (file)
@@ -4,7 +4,7 @@
 # Tony Mack <tmack@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: Events.py,v 1.7 2006/11/09 19:43:55 mlhuang Exp $
+# $Id: Events.py,v 1.8 2006/11/29 17:57:27 tmack Exp $
 #
 
 from PLC.Faults import *
@@ -71,5 +71,5 @@ class Events(Table):
             elif isinstance(event_filter, dict):
                 event_filter = Filter(Event.fields, event_filter)
             sql += " AND (%s)" % event_filter.sql(api)
-
+       sql += " ORDER BY %s" % Event.primary_key
         self.selectall(sql)