sort_ci_by_key
The sort_ci_by_key filter sorts a multi-dimensional array in a case insensitive way by a specific value in a child array. The value is specified by the array key.
By default the values are sorted in ascending order. You can pass a second parameter to sort in descending order.
This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{% set myArray = myArray|sort_ci_by_key('age') %}
{% set myArray = myArray|sort_ci_by_key('age', 'desc') %}