src/Norm/Type/Collection.php
public function compare($another)
    {
        if ($another instanceof Collection) {
            $another = $another->toArray();
        }

        $me = $this->toArray();

        if ($me == $another) {
            return 0;
        } else {
            return 1;
        }
    }
public function compare($another)
    {
        if ($another instanceof Collection) {
            $another = $another->toArray();
        }

        $me = $this->toArray();

        if ($me == $another) {
            return 0;
        } else {
            return 1;
        }
    }
public function compare ( $ another ) { if ( $ another instanceof Collection ) { $ another = $ another -> toArray ( ) ; } $ me = $ this -> toArray ( ) ; if ( $ me == $ another ) { return 0 ; } else { return 1 ; } }
Perform comparison between this implementation and another implementation of `\Norm\Type\Collection` or an array.

@param mixed $another

@return int
Perform comparison between this implementation and another implementation of \ Norm \ Type \ Collection or an array .