src/Util/JsonArray.php
public function uasort($callback, $path = '/')
    {
        $value = $this->get($path);
        if (null === $value || !is_array($value)) {
            return;
        }

        uasort($value, $callback);

        $this->set($path, $value);
    }
public function uasort($callback, $path = '/')
    {
        $value = $this->get($path);
        if (null === $value || !is_array($value)) {
            return;
        }

        uasort($value, $callback);

        $this->set($path, $value);
    }
public function uasort ( $ callback , $ path = '/' ) { $ value = $ this -> get ( $ path ) ; if ( null === $ value || ! is_array ( $ value ) ) { return ; } uasort ( $ value , $ callback ) ; $ this -> set ( $ path , $ value ) ; }
Sort the array by the provided user function.

@param callable $callback The callback function to use.

@param string   $path     The sub path to be sorted.

@return void
Sort the array by the provided user function .