KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When you do Something.find(array_of_ids) in Rails, the order of the resulting array does not depend on the order of array_of_ids . Is there any way to do the find and preserve the order? ATM I manually sort the records based on order of IDs, but that is kind of lame. UPD: if it's possible to specify the order using the :order param and some kind of SQL clause, then how?
Tags (comma-separated)
Save Edits
Cancel