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 712 712: def initialize(expression, descending = true) 713: @expression, @descending = expression, descending 714: end
Return a copy that is ASC
# File lib/sequel/sql.rb, line 717 717: def asc 718: OrderedExpression.new(@expression, false) 719: end