# File lib/redis.rb, line 900 def sort(key, options = {}) command = CommandOptions.new(options) do |c| c.value :by c.splat :limit c.multi :get c.words :order c.value :store end synchronize do @client.call [:sort, key, *command.to_a] end end