Skip to content

Commit

Permalink
Make relevance the default sort order on group pages
Browse files Browse the repository at this point in the history
If not sort order is specified, group controller passes None to
package_search, same as the package controller does, then package_search
defaults to 'score desc, name asc'
  • Loading branch information
Sean Hammond committed Aug 13, 2012
1 parent a89c8d6 commit fa3ca5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/controllers/group.py
Expand Up @@ -139,7 +139,7 @@ def read(self, id):
# most search operations should reset the page counter:
params_nopage = [(k, v) for k, v in request.params.items()
if k != 'page']
sort_by = request.params.get('sort', 'name asc')
sort_by = request.params.get('sort', None)

def search_url(params):
url = h.url_for(controller='group', action='read',
Expand Down

0 comments on commit fa3ca5b

Please sign in to comment.