erikrose/oedipus — pull request #25 by willkg (2011-10-18 14:42:03+00:00)
Title: Fix group_by to handle multiple sort fields

This fixes group_by to handle multiple sort fields. So you can now do something like:

S.group_by('a', ('@group', 'age'))

The first argument to group_by is the argument to group on and the second is the fields to sort on within that group. It works a little different than order_by, because of that first argument.

Needed this because discussion_search uses group_by but can potentially sort on multiple fields as defined in search.__init__:GROUPSORT.

r?