ZREVRANGEBYSCORE
Since 1.1.0Sorted sets
Syntax
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]Returns members of the sorted set at key with scores from max down to min. It is ZRANGE with BYSCORE REV, kept for old clients; note that max comes first.
Examples
> ZADD r 1 a 2 b 3 c
(integer) 3
> ZREVRANGEBYSCORE r 3 2
1) "c"
2) "b"