title: How to sort by most viewed in Magento?
body: <p>In Magento 1.7 i am trying sort product by most viewed product but not successfully done
  I am trying to edit toolbar.php file in magento core file please give best solution for sorting product by most viewed</p>
  
  <p>check it on - <a href="http://www.bindaaslo.com/mobile-tablets/mobile-phones.html" rel="nofollow">http://www.bindaaslo.com/mobile-tablets/mobile-phones.html</a></p>
  
  <pre><code>class Sugarcode_Catalog_Block_Product_List_Toolbar extends Mage_Catalog_Block_Product_List_Toolbar
  </code></pre>