ZREVRANGE key start stop [WITHSCORES]

    Time complexity: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned.

    Returns the specified range of elements in the sorted set stored at . The elements are considered to be ordered from the highest to the lowest score. Descending lexicographical order is used for elements with equal score.

    Array reply: list of elements in the specified range (optionally with their scores).

    *Examples

    redis> ZADD myzset 1 "one"

      redis> ZADD myzset 3 "three"

      redis> ZREVRANGE myzset 0 -1

      1. 1) "three"
      2. 2) "two"

      redis> ZREVRANGE myzset -2 -1

      1. 1) "two"
      2. 2) "one"
      redis>