generate rank by redis sorted set