antirez/redis — pull request #1377 by charsyam (2013-11-14 16:14:54+00:00)
Title: allowing-sort-readonly

Allowing sort command in read-only-slave(sorry. some of my mistake. I broke my former branch. so I recreate.)

1] removing "w" attribute from sort Command
2] and prohibit writing with store option in sortCommand when it is read only slave.

but. I might think this is not a good approach. because it is weak that someone add new option to new option.

so. how about add some other command only to store it's result to list.(ex. sortAndStore)

```c
127.0.0.1:6380> sort key desc
1) "20"
2) "10"
3) "5"
4) "4"
5) "3"
6) "2"
7) "1"
127.0.0.1:6380> sort key desc store k
(error) READONLY You can't write against a read only slave.
127.0.0.1:6380>
```