title: How to sort products
body: <p>How to sort by position products.</p>
  <p>I am making a slider and a want products to be sorted on slider. I want to use build in sorting like best match, which is on category -&gt; product tab</p>
  <p>Here is how I am doing but won't work:</p>
  <pre><code>$product_collection = Mage::getModel('catalog/category')-&gt;getProductCollection()-&gt;setOrder('position','ASC');
      $selected = 0;
      foreach($product_collection as $product) {
          $full_product = Mage::getModel('catalog/product')-&gt;load($product-&gt;getId());
          if($full_product-&gt;getTypeId() === 'configurable'){ ?&gt;
          &lt;li&gt;
                &lt;img&gt;
          &lt;/li&gt;
  &lt;? } 
  } ?&gt; 
  </code></pre>