/** * Apply sorting and filtering to collection * * @return $this */ protected function _initSelect() { parent::_initSelect(); $this->addFieldToSelect('entity_id')->addFieldToSelect('created_at')->addFieldToSelect('increment_id')->addFieldToSelect('total_qty')->addFieldToSelect('shipping_name')->setOrderFilter($this->getOrder()); return $this; }
/** * Apply sorting and filtering to collection * * @return $this */ protected function _initSelect() { parent::_initSelect(); $this->setOrderFilter($this->getOrder()); return $this; }