Lines Matching refs:sort
49 assert_equal $result [r sort tosort BY weight_*]
53 assert_equal [lrange $result 5 9] [r sort tosort BY weight_* LIMIT 5 5]
57 assert_equal $result [r sort tosort BY wobj_*->weight]
63 assert_equal [lsort -integer $result] [r sort tosort GET #]
68 set res [r sort tosort GET foo]
74 set l1 [r sort tosort GET # GET weight_*]
75 set l2 [r sort tosort GET # GET wobj_*->weight]
84 r sort tosort BY weight_* store sort-res
91 r sort tosort BY wobj_*->weight store sort-res
98 r command getkeys sort abc store def
102 r command getkeys sort abc store invalid store stillbad store def
106 assert_equal [lsort -decreasing -integer $result] [r sort tosort DESC]
115 r sort mylist alpha
125 r sort zset alpha desc
136 r sort zset by nosort asc
137 r sort zset by nosort desc
148 assert_equal [r sort zset by nosort asc limit 0 1] {a}
149 assert_equal [r sort zset by nosort desc limit 0 1] {d}
150 assert_equal [r sort zset by nosort asc limit 0 2] {a c}
151 assert_equal [r sort zset by nosort desc limit 0 2] {d b}
152 assert_equal [r sort zset by nosort limit 5 10] {}
153 assert_equal [r sort zset by nosort limit -10 100] {a c e b d}
186 assert_equal [lsort -real $floats] [r sort mylist]
191 r sort foo store bar
197 r sort foo alpha limit 10 10 store zap
204 r sort emptylist store foo
211 r sort myset alpha by _ store mylist
219 catch {r sort myset} e
228 catch {r sort myset by score:*} e
238 r sort myset by score:*
245 r sort mylist by num get x:*->
251 r sort testa by nosort
257 r sort testa by nosort store testb
262 r sort testa by nosort limit 0 3 store testb
273 set sorted [r sort tosort BY weight_* LIMIT 0 10]
285 set sorted [r sort tosort BY wobj_*->weight LIMIT 0 10]
297 set sorted [r sort tosort LIMIT 0 10]
309 set sorted [r sort tosort BY nokey LIMIT 0 10]