I have entity with fields:
User
and few more. Im sending to Twig array with objec
You must do this in your model using an "Order by" clause. However, if you want to have a table that can be sorted dynamically, you should watch about the jQuery tablesorter plugin (or equivalent if you do not want to use jQuery).
http://tablesorter.com/docs/
Sorting in reverse order:
{% for user in users|sort|reverse %}
...
{% endfor %}
sort and revers are combinable.