{#
/**
 * @file
 * Twitter Bootstrap - Material Design Icons Sorting control implementation.
 *
 * Install Icon Set:    https://google.github.io/material-design-icons/
 * Overview:            https://material.io/resources/icons/?style=baseline
 *
 * @author Mike Stuebbe <mike.stuebbe@gmail.com>
 */
#}
<a{% for attr, value in options %} {{ attr }}="{{ value }}"{% endfor %}>
    <span class="float-right">
        {% if sorted %}
            {% if direction == 'desc' %}
                <i class="material-icons">expand_more</i>
            {% else %}
                <i class="material-icons">expand_less</i>
            {% endif %}
        {% else %}
            <i class="material-icons">unfold_more</i>
        {% endif %}
    </span>
    {{- title -}}
</a>
