application/Espo/Core/Utils/Util.php
public static function ksortRecursive(&$array)
    {
        if (!is_array($array)) {
            return false;
        }

        ksort($array);
        foreach ($array as $key => $value) {
            static::ksortRecursive($array[$key]);
        }

        return true;
    }
public static function ksortRecursive(&$array)
    {
        if (!is_array($array)) {
            return false;
        }

        ksort($array);
        foreach ($array as $key => $value) {
            static::ksortRecursive($array[$key]);
        }

        return true;
    }
public static function ksortRecursive ( & $ array ) { if ( ! is_array ( $ array ) ) { return false ; } ksort ( $ array ) ; foreach ( $ array as $ key => $ value ) { static :: ksortRecursive ( $ array [ $ key ] ) ; } return true ; }
Sort array recursively
@param  array $array
@return bool
Sort array recursively