okfn/ckan — pull request #1368 by amercader (2014-01-08 16:34:01+00:00)
Title: Default search ordering on organization home page is broken

Can replicate at demo.ckan.org and datahub.io (2.1.1)

Go to http://demo.ckan.org/group/geo-examples

The ordering drop-down says Names ascending, but notice the results are not sorted correctly. If you choose Name descending, it works, and then choosing Name ascending will do the right thing.

Sounds like the controller needs to specify the default sort if none is passed.