From: Torsten Werner Date: Mon, 31 Jan 2011 20:24:39 +0000 (+0100) Subject: Add order_by(DBSource.source) to DejavuBinary. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=914fd407cb00bd3e44a8736ec7035fd813c1f3f6;p=dak.git Add order_by(DBSource.source) to DejavuBinary. Signed-off-by: Torsten Werner --- 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: