Skip to content

Commit

Permalink
Order sort parameters by label
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Jan 31, 2019
1 parent 48fc165 commit 07f80ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udata/templates/macros/search.html
Expand Up @@ -26,7 +26,7 @@
---
</a>
</li>
{% for field, (label, order) in kwargs.items() %}
{% for field, (label, order) in kwargs|dictsort(by='value') %}
{% set sort = field if order == 'asc' else '-'+field %}
<li>
<a href="{{ to_url(url=url, replace=True, sort=sort) }}">
Expand Down

0 comments on commit 07f80ca

Please sign in to comment.