A base database collection class (\Magento\Framework\Data\Collection\AbstractDb
) has a public getSelect()
method which returns a \Magento\Framework\DB\Select
instance:
So you can just foillow the instruction How to order a database result-set?
A base database collection class (\Magento\Framework\Data\Collection\AbstractDb
) has a public getSelect()
method which returns a \Magento\Framework\DB\Select
instance:
So you can just foillow the instruction How to order a database result-set?