method

build_order

Importance_0
build_order(arel) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/query_methods.rb, line 1044
    def build_order(arel)
      orders = order_values.uniq
      orders.reject!(&:blank?)
      orders = reverse_sql_order(orders) if reverse_order_value

      arel.order(*orders) unless orders.empty?
    end
Register or log in to add new notes.