class AWS::Record::Model::Scope

def order attribute_name, order = :asc

Parameters:
  • order (:asc, :desc) -- (:asc) The direct to sort.
  • attribute_name (String, Symbol) -- The attribute to sort by.
def order attribute_name, order = :asc
  _with(:order => [attribute_name, order])
end