Closed durran closed 12 years ago
Add options for sorting:
Model.asc(:field) Model.ascending(:field) Model.desc(:field) Model.descending(:field) Model.order_by("field asc, other desc") Model.order_by(:field.asc, :other.desc) Model.order_by(field: :asc, other: :desc)
If we're going to cover all bases, I'd add
Model.order_by(:field, :asc)
to the list.
Sure thing.
Add options for sorting: