/** * Function to get orderby sql from orderby field */ public function getOrderBySql($orderBy) { if ($orderBy == 'status') { return $orderBy; } return parent::getOrderBySql($orderBy); }