title: Redis sorted set leader board ranking on same score
body: <p>I'm using Redis sorted set to implement the leaderboard of my game, where I show the user ranking in descending order. I'm stuck in a case where two or more users have the same score. So in this case, I want the higher ranking of the user who gets the score first. For example, I'm adding the following entries in Redis.</p>
  <pre><code>127.0.0.1:6379&gt; zadd testing-key 5 a
  (integer) 1
  127.0.0.1:6379&gt; zadd testing-key 4 b
  (integer) 1
  127.0.0.1:6379&gt; zadd testing-key 5 c
  (integer) 1
  </code></pre>
  <p>and when I'm querying for the rank in reverse order, I'm getting this</p>
  <pre><code>127.0.0.1:6379&gt; zrevrange testing-key 0 10
  1) &quot;c&quot;
  2) &quot;a&quot;
  3) &quot;b&quot;
  </code></pre>
  <p>but in my case, the ranking should be like</p>
  <pre><code>1) &quot;a&quot;
  2) &quot;c&quot;
  3) &quot;b&quot;
  </code></pre>
  <p>So is there any provision in Redis to give higher precedence to the entity which entered first in the set with the same score?</p>