src/StorageMetadataFactory.php
private function rksort(array $array)
    {
        ksort($array);
        foreach ($array as $k => $v) {
            if (is_array($v)) {
                $array[$k] = $this->rksort($v);
            }
        }
        return $array;
    }
private function rksort(array $array)
    {
        ksort($array);
        foreach ($array as $k => $v) {
            if (is_array($v)) {
                $array[$k] = $this->rksort($v);
            }
        }
        return $array;
    }
private function rksort ( array $ array ) { ksort ( $ array ) ; foreach ( $ array as $ k => $ v ) { if ( is_array ( $ v ) ) { $ array [ $ k ] = $ this -> rksort ( $ v ) ; } } return $ array ; }
Recursively ksorts an array
@param   array
@return  array
Recursively ksorts an array