title: Magento - Collection Filter by Array Keep Order
body: <p>Is it possible to filter a Magento collection using an array of id's <strong>BUT</strong> have the collection results ordered by the order of the id's passed to the filter.</p>
  
  <p>For example:</p>
  
  <pre><code>$collection = Mage::getModel('catalog/product')
                    -&gt;getCollection()
                    -&gt;addAttributeToFilter('entity_id', array(
                         'in' =&gt; array(1, 3, 2),
                     ));
  </code></pre>
  
  <p>I would like the collection to have products in order, 1,3,2 so as when looping through the collection they come out in that specific order?</p>
  
  <p>The only alternative i currently have is to manually create an array of products:</p>
  
  <pre><code>$productIds = array(1,3,2);
  $collection = array();
  
  foreach($productIds as $productId) {
      $collection[] = Mage::getModel('catalog/product')-&gt;load($productId);
  }
  </code></pre>
  
  <p>This obviously works but seems like an ugly way to do this.</p>
  
  <p>is there a way to do this purely via magento collections?</p>