{% import 'ohmyadmin/icons.html' as icons %} {% set control = helper.get_control(component.sort_field) %} {{ component.text }} {% if control.ordering == 'asc' %} {{ icons.sort_asc() }} {% elif control.ordering == 'desc' %} {{ icons.sort_desc() }} {% else %} {{ icons.sort() }} {% endif %} {% if control.show_index and control.index %} {{ control.index }} {% endif %}