Method: Sequel::SQL::Function#order

Defined in:
lib/sequel/sql.rb

#order(*args) ⇒ Object

Return a new function where the function will be ordered. Only useful for aggregate functions that are order dependent.

Sequel.function(:foo, :a).order(:a, Sequel.desc(:b)) # foo(a ORDER BY a, b DESC)


1432
1433
1434
# File 'lib/sequel/sql.rb', line 1432

def order(*args)
  with_opts(:order=>args.freeze)
end