private function recursiveSort(array &$element)
    {
        foreach ($element as &$value) {
            if (is_array($value)) {
                $this->recursiveSort($value);
            }
        }

        uasort($element, function (
            Translation $a,
            Translation $b
        ) {
            return strcmp($a->getKey(), $b->getKey());
        });
    }
private function recursiveSort(array &$element)
    {
        foreach ($element as &$value) {
            if (is_array($value)) {
                $this->recursiveSort($value);
            }
        }

        uasort($element, function (
            Translation $a,
            Translation $b
        ) {
            return strcmp($a->getKey(), $b->getKey());
        });
    }
private function recursiveSort ( array & $ element ) { foreach ( $ element as & $ value ) { if ( is_array ( $ value ) ) { $ this -> recursiveSort ( $ value ) ; } } uasort ( $ element , function ( Translation $ a , Translation $ b ) { return strcmp ( $ a -> getKey ( ) , $ b -> getKey ( ) ) ; } ) ; }
Sort array level.

@param array $element
Sort array level .