src/Jsonq.php
public function sortByCallable(callable $sortFunc)
    {
        $this->prepare();

        if (!is_array($this->_map)) {
            return $this;
        }

        usort($this->_map, $sortFunc);

        return $this;
    }
public function sortByCallable(callable $sortFunc)
    {
        $this->prepare();

        if (!is_array($this->_map)) {
            return $this;
        }

        usort($this->_map, $sortFunc);

        return $this;
    }
public function sortByCallable ( callable $ sortFunc ) { $ this -> prepare ( ) ; if ( ! is_array ( $ this -> _map ) ) { return $ this ; } usort ( $ this -> _map , $ sortFunc ) ; return $ this ; }
Sort prepared data using a custom sort function.

@param callable $sortFunc

@return object|array|null
@throws ConditionNotAllowedException
Sort prepared data using a custom sort function .