From 914fd407cb00bd3e44a8736ec7035fd813c1f3f6 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Mon, 31 Jan 2011 21:24:39 +0100 Subject: [PATCH] Add order_by(DBSource.source) to DejavuBinary. Signed-off-by: Torsten Werner --- daklib/cruft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/cruft.py b/daklib/cruft.py index cea4f23a..f060085d 100644 --- a/daklib/cruft.py +++ b/daklib/cruft.py @@ -92,7 +92,7 @@ class DejavuBinary(object): # are in the right suite. bin_query = suite.binaries.filter_by(package = package).subquery() src_query = session.query(DBSource.source).with_parent(suite). \ - join(bin_query).group_by(DBSource.source) + join(bin_query).order_by(DBSource.source).group_by(DBSource.source) self.sources = [] if src_query.count() > 1: for source, in src_query: -- 2.39.5