From 073da36122b23d7bc96b8d81a8da52d00d034da7 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sun, 16 Jan 2011 18:09:55 +0100 Subject: [PATCH] Define sort order for Architecture Suite relationship. Signed-off-by: Torsten Werner --- daklib/dbconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index b1db5740..c4d4aff6 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2889,7 +2889,7 @@ class DBConn(object): def __setupmappers(self): mapper(Architecture, self.tbl_architecture, properties = dict(arch_id = self.tbl_architecture.c.id, - suites = relation(Suite, secondary=self.tbl_suite_architectures, backref='architectures'))) + suites = relation(Suite, secondary=self.tbl_suite_architectures, backref='architectures', order_by='suite_name'))) mapper(Archive, self.tbl_archive, properties = dict(archive_id = self.tbl_archive.c.id, -- 2.39.5