public function getAllowSorting() { return $this->getSortExpression() !== '' && (!$this->_owner || $this->_owner->getAllowSorting()); }