Change the key on the sorted set to an integer
Added missing condition on getRange queries