src/Zicht/Itertools/twig/Extension.php
public function sorted($iterable, $strategy = null, $reverse = false)
    {
        return Itertools\sorted($strategy, $iterable, $reverse);
    }
public function sorted($iterable, $strategy = null, $reverse = false)
    {
        return Itertools\sorted($strategy, $iterable, $reverse);
    }
Make an iterator that returns the values from $iterable sorted by
$strategy.

@param array|string|\Iterator $iterable
@param string|\Closure $strategy
@param bool $reverse
@return Itertools\lib\SortedIterator