Using desc sorting by default in sortable_table_macro.html.twig.
This commit is contained in:
parent
4fa46e2a33
commit
a1ecf300be
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue