antirez/redis — pull request #1858 by lwch (2014-07-05 08:05:13+00:00)
Title: fix sort order with `store` param in sort command

My LC_COLLATE is zh_CN.UTF-8, but sort command with `store` param is sorted with memory encoding order.

127.0.0.1:6379> hset test:a prop 爸爸
1
127.0.0.1:6379> hset test:b prop 妈妈
1
127.0.0.1:6379> hset test:c prop 爷爷
1
127.0.0.1:6379> hset test:d prop 奶奶
1
127.0.0.1:6379> hset test:e prop 姑姑
1
127.0.0.1:6379> lpush test a b c d e
5
127.0.0.1:6379> sort test by test:*->prop alpha
a
e
b
d
c
127.0.0.1:6379> sort test by test:*->prop alpha store test1
5
127.0.0.1:6379> lrange test1 0 -1
d
b
e
c
a