Skip to content

Commit

Permalink
#3259 / Organizations are sorted by title
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb committed Feb 21, 2017
1 parent e9d58bb commit 9033832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/logic/action/get.py
Expand Up @@ -336,7 +336,7 @@ def _group_or_org_list(context, data_dict, is_org=False):
data_dict, logic.schema.default_pagination_schema(), context)
if errors:
raise ValidationError(errors)
sort = data_dict.get('sort') or 'name'
sort = data_dict.get('sort') or 'title'
q = data_dict.get('q')

all_fields = asbool(data_dict.get('all_fields', None))
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates/organization/index.html
Expand Up @@ -17,7 +17,7 @@
{% block primary_content_inner %}
<h1 class="hide-heading">{% block page_heading %}{{ _('Organizations') }}{% endblock %}</h1>
{% block organizations_search_form %}
{% snippet 'snippets/search_form.html', form_id='organization-search-form', type='organization', query=c.q, sorting_selected=c.sort_by_selected, count=c.page.item_count, placeholder=_('Search organizations...'), show_empty=request.params, no_bottom_border=true if c.page.items %}
{% snippet 'snippets/search_form.html', form_id='organization-search-form', type='organization', query=c.q, sorting_selected=c.sort_by_selected, count=c.page.item_count, placeholder=_('Search organizations...'), show_empty=request.params, no_bottom_border=true if c.page.items, sorting = [(_('Name Ascending'), 'title asc'), (_('Name Descending'), 'title desc')] %}
{% endblock %}
{% block organizations_list %}
{% if c.page.items or request.params %}
Expand Down

0 comments on commit 9033832

Please sign in to comment.