The sort filter sorts an array:
{% for user in users|sort %} ... {% endfor %}
Note
Internally, Twig uses the PHP asort function to maintain index association.
slice
split
Enter search terms or a module, class or function name.