id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 24923 Aggregates in order_by should error out nicely Anssi Kääriäinen Tim Graham "Expressions are allowed in order_by, but aggregates don't currently work. Making them work would cause too much trouble when taking in account that you can already do {{{ qs.annotate(agg=Sum('foo')).order_by('agg') }}} as opposed to {{{ qs.order_by(Sum('foo')) }}}" Cleanup/optimization closed Database layer (models, ORM) dev Normal fixed Ready for checkin 0 0 0 0 0 0