Using desc sorting by default in sortable_table_macro.html.twig.

This commit is contained in:
Alexey Eschenko 2018-10-28 13:26:34 +00:00
parent 4fa46e2a33
commit a1ecf300be

View file

@ -24,7 +24,7 @@
'query': query, 'query': query,
'page': page, 'page': page,
'order-by': property, 'order-by': property,
'order': (order and isCurrent) ? ('asc' == order|lower ? 'desc' : 'asc') : 'asc' 'order': (order and isCurrent) ? ('desc' == order|lower ? 'asc' : 'desc') : 'desc'
}) }}"> }) }}">
{% if order and isCurrent %} {% if order and isCurrent %}
<i class="fas fa-sort-{% if 'asc' == order|lower %}down{% elseif 'desc' == order|lower %}up{% endif %}"></i> <i class="fas fa-sort-{% if 'asc' == order|lower %}down{% elseif 'desc' == order|lower %}up{% endif %}"></i>