Rails AREL different way to order ASC / DESC
Rails
PostgreSQL
AREL trick
Procedure.order(name: :desc) Procedure.order(name: :asc)
Procedure.order(Procedure.arel_table[:name].desc) Procedure.order(Procedure.arel_table[:name].asc)