Magento 2 Certification Questions List | How to set order for a magento collection? (choose 2)

How to set order for a magento collection? (choose 2)

Answer:
  • $coll->getSelect()->order('entity_id desc')
  • $coll->setOrder('entity_id','desc')
Prepear for Magento 2 certefication with our interactive quiz