src/Comparer.php
final public function compare($item1, $item2)
    {
        if (!$this->isReady()) {
            throw new \RuntimeException("The comparer is not ready, no valid callback has been set.");
        }

        return call_user_func_array($this->callback, [$item1, $item2, $this->options]);
    }
final public function compare($item1, $item2)
    {
        if (!$this->isReady()) {
            throw new \RuntimeException("The comparer is not ready, no valid callback has been set.");
        }

        return call_user_func_array($this->callback, [$item1, $item2, $this->options]);
    }
final public function compare ( $ item1 , $ item2 ) { if ( ! $ this -> isReady ( ) ) { throw new \ RuntimeException ( "The comparer is not ready, no valid callback has been set." ) ; } return call_user_func_array ( $ this -> callback , [ $ item1 , $ item2 , $ this -> options ] ) ; }
Compares two items.

@param mixed $item1 The left operand.
@param mixed $item2 The right operand.

@throws \RuntimeException
@return int Return <0 if $item1<$item2; 0if $item1=$item2; >1 if $item1>$item2
Compares two items .