library/Rediska/Key/SortedSet.php
public function toArray($withScores = false, $start = 0, $end = -1, $revert = false, $responseIterator = false)
    {
        return $this->getByRank($withScores, $start, $end, $revert, $responseIterator);
    }
public function toArray($withScores = false, $start = 0, $end = -1, $revert = false, $responseIterator = false)
    {
        return $this->getByRank($withScores, $start, $end, $revert, $responseIterator);
    }
Get Sorted set values

@param integer $withScores  Return values with scores
@param integer $start       Start index
@param integer $end         End index
@param boolean $revert      Revert elements (not used in sorting)
@param boolean $responseIterator[optional]  If true - command return iterator which read from socket buffer.
Important: new connection will be created

@return array