title: Clean way to find ActiveRecord objects by id in the order specified
body: <p>I want to obtain an array of ActiveRecord objects given an array of ids.</p>
  
  <p>I assumed that</p>
  
  <pre><code>Object.find([5,2,3])
  </code></pre>
  
  <p>Would return an array with object 5, object 2, then object 3 in that order, but instead I get an array ordered as object 2, object 3 and then object 5.</p>
  
  <p>The ActiveRecord Base <a href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002208" rel="noreferrer">find method API</a> mentions that you shouldn't expect it in the order provided (other documentation doesn't give this warning).</p>
  
  <p>One potential solution was given in <a href="http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/158dc2d879b2fb1" rel="noreferrer">Find by array of ids in the same order?</a>, but the order option doesn't seem to be valid for SQLite.</p>
  
  <p>I can write some ruby code to sort the objects myself (either somewhat simple and poorly scaling or better scaling and more complex), but is there A Better Way?</p>