---
title: "zrevrange · RUAL Documentation"
description: "Reads the members of a sorted set by position, highest score first. A RUAL redis block in the redis sorted sets group. See its pins and version history."
canonical: https://docs.rual.nl/block-types/redis/redis_zrevrange
language: en
---

# zrevrange

This block is part of the [`redis`](https://docs.rual.nl/block-types/redis) group and was last modified in core [`v15.0.3`](https://docs.rual.nl/core-versions/150003).

## Redis Key Selection Required

This block relies on a Redis key to perform its redis releated actions. You must manually select the Redis key you want to use in the flow in the blueprint using the Redis key selector modal. To access the modal, click the white button on the block.

Reads the members of a sorted set by position, highest score first.

- flow

- set `value` required key of the sorted set

- offset `number`

- limit `number`

- include scores `condition`

- flow

- results `array`

- success `condition`

- error `value`

- key `value`

offset skips that many members from the top and limit caps how many are returned (missing or negative: to the end; 0: none). with_scores returns {member, score} objects instead of member strings, the shape redis_zrangebyscore returns. A negative or unreadable offset is INVALID_OFFSET, an unreadable limit INVALID_LIMIT. Example: offset 0, limit 10, with_scores true is a top ten.

| `redis zrevrange` |
| --- |
| `zrevrange` |
| `leaderboard` |

## Version history

Introduced in [`v15.0.3`](https://docs.rual.nl/core-versions/150003).

## Service documentation

- [External API reference](https://redis.io/commands/zrevrange/): This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.

- [Back to `redis`](https://docs.rual.nl/block-types/redis): Return to the main group to view all sub-groups

- [Back to `redis sorted sets`](https://docs.rual.nl/block-types/redis?group=redis%20sorted%20sets): Return to the group to view all blocks within this group
