Method: Sequel::SQL::Builders#asc

Defined in:
lib/sequel/sql.rb

#asc(arg, opts = OPTS) ⇒ Object

Order the given argument ascending. Options:

:nulls

Set to :first to use NULLS FIRST (so NULL values are ordered before other values), or :last to use NULLS LAST (so NULL values are ordered after other values).

Sequel.asc(:a) # a ASC
Sequel.asc(:b, nulls: :last) # b ASC NULLS LAST


345
346
347
# File 'lib/sequel/sql.rb', line 345

def asc(arg, opts=OPTS)
  SQL::OrderedExpression.new(arg, false, opts)
end