function getRecordSet() { $rs = parent::getRecordSet(); if ($this->sort_params) { $rs->sort($this->sort_params); } return $rs; }