Represents a column/expression to order the result set by.
Set the expression and descending attributes to the given values. Options:
:nulls |
Can be :first/:last for NULLS FIRST/LAST. |
# File lib/sequel/sql.rb, line 1364 def initialize(expression, descending = true, opts={}) @expression, @descending, @nulls = expression, descending, opts[:nulls] end
Return a copy that is ordered ASC
# File lib/sequel/sql.rb, line 1369 def asc OrderedExpression.new(@expression, false, :nulls=>@nulls) end
Generated with the Darkfish Rdoc Generator 2.