def sort(options = {})
      if options.has_key?(:get)
        options[:get] = to_key(options[:get])

        Stal.solve(redis, ["SORT", key, *Utils.sort_options(options)])
      else
        fetch(Stal.solve(redis, ["SORT", key, *Utils.sort_options(options)]))
      end
    end
def sort(options = {})
      if options.has_key?(:get)
        options[:get] = to_key(options[:get])

        Stal.solve(redis, ["SORT", key, *Utils.sort_options(options)])
      else
        fetch(Stal.solve(redis, ["SORT", key, *Utils.sort_options(options)]))
      end
    end
Allows you to sort your models using their IDs. This is much
 faster than `sort_by`. If you simply want to get records in
 ascending or descending order, then this is the best method to
 do that.

 Example:

   class User < Ohm::Model
     attribute :name
   end

   User.create(:name => "John")
   User.create(:name => "Jane")

   User.all.sort.map(&:id) == ["1", "2"]
   # => true

   User.all.sort(:order => "ASC").map(&:id) == ["1", "2"]
   # => true

   User.all.sort(:order => "DESC").map(&:id) == ["2", "1"]
   # => true