{% load i18n wagtailadmin_tags %}
<th class="ord{% if is_ascending %} ord--active{% endif %}">
    {% if is_ascending %}
        <a href="{{ table.base_url }}{% querystring p=None ordering=None %}" title="{% trans 'Disable custom ordering' %}">
            {% icon name="order" %}{% trans 'Sort' %}
        </a>
    {% else %}
        <a href="{{ table.base_url }}{% querystring p=None ordering=column.sort_key %}" title="{% trans 'Enable custom ordering' %}">
            {% icon name="order" %}{% trans 'Sort' %}
        </a>
    {% endif %}
</th>
