[SortedSet] Fixed bug in rangeByScore function.