diff --git a/gittip/testing.py b/gittip/testing.py index a6f50eb461..020a10ef67 100644 --- a/gittip/testing.py +++ b/gittip/testing.py @@ -240,7 +240,8 @@ def dump(self): pkeys = self._get_primary_keys() for table_name in self._get_table_names(): pkey = pkeys[table_name] - rows = self.db.fetchall("SELECT * FROM %s" % table_name) + rows = self.db.fetchall("SELECT * FROM %s ORDER BY %s" + % (table_name, pkey)) if rows is None: rows = [] mapped = {}