title: Sort new products magento
body: <p>I'm developing a magento webshop. On my homepage I display the newly added products. I want to sort those, preferably by colour.</p>
  
  <p>home xml:</p>
  
  <pre><code>&lt;block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" 
   template="catalog/product/new.phtml" after="cms_page"&gt;  
      &lt;action method="setProductsCount"&gt;&lt;count&gt;100&lt;/count&gt;&lt;/action&gt;
          &lt;action method="addPriceBlockType"&gt;
              &lt;type&gt;bundle&lt;/type&gt;
              &lt;block&gt;bundle/catalog_product_price&lt;/block&gt;
              &lt;template&gt;bundle/catalog/product/price.phtml&lt;/template&gt;
          &lt;/action&gt;
  &lt;/block&gt;
  </code></pre>
  
  <p>I tried adding an attribute called "kleur" which can be used to sort. After that I put these next two lines in this block and that did not work.</p>
  
  <pre><code>    &lt;action method="setDefaultOrder"&gt;&lt;field&gt;kleur&lt;/field&gt;&lt;/action&gt;
      &lt;action method="setDefaultDirection"&gt;&lt;dir&gt;asc&lt;/dir&gt;&lt;/action&gt;
  </code></pre>
  
  <p>I also tried to set the "kleur" field in the display settings of the category. And last but not least I also tried to set it in the configuration->category.</p>
  
  <p>On the web I can't find more solutions to the problem. </p>
  
  <p>Is there any other way, except editing the template file to sort the new products.</p>
  
  <p>I hope I gave you enough information to be able to give some advice, if you need more don't hesitate to ask.</p>
  
  <p>Thanks in advance!</p>