public function reverse()
    {
        $positions = array_flip($this->getKeys());
        $this->uksort(
            function ($a, $b) use ($positions) {
                return ($positions[$a] < $positions[$b] ? 1 : -1);
            }
        );

        return $this;
    }
public function reverse()
    {
        $positions = array_flip($this->getKeys());
        $this->uksort(
            function ($a, $b) use ($positions) {
                return ($positions[$a] < $positions[$b] ? 1 : -1);
            }
        );

        return $this;
    }
public function reverse ( ) { $ positions = array_flip ( $ this -> getKeys ( ) ) ; $ this -> uksort ( function ( $ a , $ b ) use ( $ positions ) { return ( $ positions [ $ a ] < $ positions [ $ b ] ? 1 : - 1 ) ; } ) ; return $ this ; }
Return an collection with elements in reverse order

@return static
Return an collection with elements in reverse order