server/sources/rql2sql.py
branchstable
changeset 3754 a9c641f6193b
parent 3752 4c77a1653374
child 3762 e416186fb91c
--- a/server/sources/rql2sql.py	Tue Oct 20 16:22:52 2009 +0200
+++ b/server/sources/rql2sql.py	Tue Oct 20 16:48:30 2009 +0200
@@ -212,6 +212,7 @@
     if selectsortterms and sorts:
         sort_term_selection(sorts, selectedidx, rqlst, not needwrap and groups)
     if sorts and groups:
+        # when a query is grouped, ensure sort terms are grouped as well
         for sortterm in sorts:
             term = sortterm.term
             if not isinstance(term, Constant):