title: magento search order by relevance
body: <p>I have the following code:</p>
  
  <p><code>$collection = Mage::getSingleton('catalogsearch/layer')-&gt;getProductCollection();</code></p>
  
  <p>I've tried </p>
  
  <p><code>$collection = Mage::getSingleton('catalogsearch/layer')-&gt;getProductCollection()-&gt;addAttributeToSort('relevance', 'desc')</code> </p>
  
  <p>But it does not work.</p>
  
  <p>Any ideas?</p>