public function action_sort() { /* Allows grid to function with table template */ if ($this->getParameter('sort')) { parent::action_sort(); } else { $column = $this->getParameter('column'); $direction = $this->getParameter('direction'); $this->sort = new Table_Sort($column, $direction); $this->setStart(0); $this->invalidate(); } }