src/BTR/RedisObjects/RedisSortedSet.php
public function range(int $start, int $stop, bool $withscores = false, bool $reverse = false): array
    {
        if ($reverse) {
            $ret = $this->redis->zrevrange($this->key, $start, $stop, $withscores);
        } else {
            $ret = $this->redis->zrange($this->key, $start, $stop, $withscores);
        }

        return array_map([$this, 'strToVal'], $ret);
    }
public function range(int $start, int $stop, bool $withscores = false, bool $reverse = false): array
    {
        if ($reverse) {
            $ret = $this->redis->zrevrange($this->key, $start, $stop, $withscores);
        } else {
            $ret = $this->redis->zrange($this->key, $start, $stop, $withscores);
        }

        return array_map([$this, 'strToVal'], $ret);
    }
@link https://redis.io/commands/zrange
@link https://redis.io/commands/zrevrange

@param int  $start
@param int  $stop
@param bool $withscores
@param bool $reverse Output is reversed.

@return array Members with position between $start and $stop. Optionally with scores.