prepareAlias($row['title']); return parent::_prepareRow($row); } protected function prepareAlias($title) { $alias = preg_replace('/[^a-zA-Z0-9-]+/', ' ', $title); $alias = trim($alias); $alias = preg_replace('/[- ]+/', '-', $alias); $alias = strtolower($alias); return $alias; } public function getListSelect() { if (null !== $this->_select) { return $this->_select; } $select = parent::getListSelect(); $this->_filterEnabled($select); $select->order('sorter'); return $select; } }