Sort by title for groups and orgs

This is the https://github.com/ckan/ckan/pull/2027 from @mbellotti but with a new test (the old test file had been deleted) and minor changes to the docstring.

The PR allows title to be used for sorting the results of group/organization_list.