antirez/redis — Issue #300: sort set by hash->wildcard not working
Author: pixelcort
Created: 2012-01-16 19:09:28+00:00
State: open

I'm trying to sort a set by keys inside a hash as follows:

redis 127.0.0.1:6379> sadd set a b c d e
(integer) 5
redis 127.0.0.1:6379> hmset sort a 5 b 3 c 1 d 4 e 2
OK
redis 127.0.0.1:6379> sort set by sort->*

What I got was:

1) "c"
2) "d"
3) "a"
4) "b"
5) "e"

What I was expecting was:

1) "c"
2) "e"
3) "b"
4) "d"
5) "a"