Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Return objects from ActiveRecord::Relation.find in argument order

#6776

When performing an un-ordered find query, I often want the objects in argument order:

Person.find(1, 2, 3) -> [#<Person id: 1>, #<Person id: 2>, #<Person id: 3>]
Person.find(3, 2, 1) -> [#<Person id: 3>, #<Person id: 2>, #<Person id: 1>]

Is there any downside to this, apart from the minor performance impact?

Reported by David Phillips · May 11th, 2011 @ 07:14 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.