0

I want to use redis sortset to achieve leaderboards.
I want the user who has the same point has the same rank. But I found that the sortset is ordered by dictionary when the score is the same.
How can I achieve it?

sazzad
  • 5,740
  • 6
  • 25
  • 42
cc.zhang
  • 55
  • 10
  • https://stackoverflow.com/questions/26227796/redis-sortedset-how-to-get-values-in-numerical-order-rather-than-alphabetical-o?rq=1 – trevorj Dec 15 '17 at 10:21
  • thanks.I want to achieve this case:when the score is same,then their rank is same.Please. – cc.zhang Dec 15 '17 at 12:30
  • Yes, that's exactly the problem I linked :) – trevorj Dec 18 '17 at 01:14
  • Possible duplicate of [Redis SortedSet: How to get values in numerical order rather than alphabetical order when two values has the same score?](https://stackoverflow.com/questions/26227796/redis-sortedset-how-to-get-values-in-numerical-order-rather-than-alphabetical-o) – sazzad Jan 28 '18 at 16:54
  • That's the one I posted @sazzad ;) – trevorj Feb 13 '18 at 13:50
  • @trevorj I did not comment, but flagged this question. That comment is auto generated :P – sazzad Feb 13 '18 at 14:38

0 Answers0