{% load extras %}
{% if 'sort_by='|add:order_name in request.get_full_path %}
{{order_name|title}}
{% if 'sort_by=date' in request.get_full_path %}
{% if 'ascending' in request.get_full_path %}
{% else %}
{% endif %}
{% elif 'sort_by=title' in request.get_full_path%}
{% if 'descending' in request.get_full_path %}
{% else %}
{% endif %}
{% endif %}
{% else %}
{{order_name|title}}
{% endif %}