class Redis

def sort(key, options = {})

Sort the elements in a list, set or sorted set.
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