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)
1438 1439 1440 |
# File 'lib/sequel/sql.rb', line 1438 def order(*args) with_opts(:order=>args.freeze) end |