For non-EAV collections use one of the following methods $kitCollection-> getSelect()->order('related_sku DESC'); $kitCollection->setOrder('related_sku', ...
You're actually doing it the right way. However, since Magento uses EAV, it needs to apply tricks to help performance. One of these tricks is the ...
Magento 1.9.x CMS Static Blocks are saved in cms_block table which doesn't have any field called "position". So you cannot sort by "position".
And setOrder is defined in app/code/core/Mage/Eav/Model/Entity/ Collection/Abstract.php – Alan Storm Jul 1 '10 at 16:20. Add a comment |.
Have anyone knows the answer? Labels: CE 1.9 · community-edition · magento1.
Use the addFieldToFilter method $order_collection = Mage::getModel('sales/ order')->getCollection()->addFieldToFilter('status', array('nin' ...
Sort by eav attributes. Most Magento standard collections use eav models like all product attributes. If you want to sort a collection by one of them, ...
Method 1: Get All Order Collection with filters. To get all order collection with filters, go to the ...
In this post Adam looks at how to load, filter and sort your Magento
Magento Product collections is a great way of extracting and manipulating data