Class | Sequel::SQL::OrderedExpression |
In: |
lib/sequel/sql.rb
|
Parent: | Expression |
descending | [R] | Whether the expression should order the result set in a descending manner |
expression | [R] | The expression to order the result set by. |
Set the expression and descending attributes to the given values.
# File lib/sequel/sql.rb, line 758 758: def initialize(expression, descending = true) 759: @expression, @descending = expression, descending 760: end
Return a copy that is ASC
# File lib/sequel/sql.rb, line 763 763: def asc 764: OrderedExpression.new(@expression, false) 765: end