i found a little issue with the Sort command today, involving the "limit" parameter.
When passed a String as either offset or count (array("0","4")), the function will ignore the limit parameter altogether. It's easy to reproduce, just run a sort command and pass it an offset or count as a String, while running MONITOR on Redis and you'll the the LIMIT param is missing from the command.
Is it an expected behavior of this function?
Thanks for this report; the case was simply not handled. Strings and integral numbers are now supported.
I have added a unit test as well.