+
+ it "should be able to handle array of :get using SORT" do
+ @r['dog:1:name'] = 'louie'
+ @r['dog:1:breed'] = 'mutt'
+ @r.rpush 'dogs', 1
+ @r['dog:2:name'] = 'lucy'
+ @r['dog:2:breed'] = 'poodle'
+ @r.rpush 'dogs', 2
+ @r['dog:3:name'] = 'max'
+ @r['dog:3:breed'] = 'hound'
+ @r.rpush 'dogs', 3
+ @r['dog:4:name'] = 'taj'
+ @r['dog:4:breed'] = 'terrier'
+ @r.rpush 'dogs', 4
+ @r.sort('dogs', :get => ['dog:*:name', 'dog:*:breed'], :limit => [0,1]).should == ['louie', 'mutt']
+ @r.sort('dogs', :get => ['dog:*:name', 'dog:*:breed'], :limit => [0,1], :order => 'desc alpha').should == ['taj', 'terrier']
+ end