If you’re getting an error that reads “One or more scores can’t be converted into double” when using either the SORT
or SORT_RO
commands in Redis, it could be because you omitted the ALPHA
modifier when trying to sort string values.
If you want to sort string values lexicographically, you need to use the ALPHA
modifier when using the SORT
or SORT_RO
command.