ZREVRANGE

Returns a rank range in descending score order.

Sorted sets · Example verified

Syntax covered here

ZREVRANGE key start stop

The tested bounds 0 and -1 return every member, highest score first.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> ZADD scores 1 a 2 b
2
# connection: default
> ZREVRANGE scores 0 -1
["b","a"]