okfn/ckan — pull request #71 by rossjones (2012-07-17 11:19:04+00:00)
Title: Added support for specifying the sort direction

Previously we only allowed the sort direction to be asc for groups names
and desc for packages (package counts). Now users can specify a sort_direction
to have a little more control.

On the datahub we have over a hundred groups and no way of sorting by number of datasets etc, would be useful in the absence of a working search index to allow reversing the results. Most of the backend was already in place but with fixed sort directions.