The sort
filter will sort a list. The items of the list must implement Comparable
.
twig
{% for user in users | sort %}
{{ user.name }}
{% endfor %}
🚀 New! Kestra raises $3 million to grow Learn more
The sort
filter will sort a list. The items of the list must implement Comparable
.
{% for user in users | sort %}
{{ user.name }}
{% endfor %}