public function getSort() { if ($this->sort === NULL) { $name = $this->getName(); $sort = isset($this->grid->sort[$name]) ? $this->grid->sort[$name] : NULL; $this->sort = $sort === NULL ? NULL : $sort; } return $this->sort; }