public function sortByPubDate($typeSort = 'ASC') { $this->getDbCriteria()->mergeWith(['order' => $this->getTableAlias() . '.publish_time ' . $typeSort]); return $this; }