public function setDefaultSort($dir) { $this->grid->setDefaultSort([$this->getName() => $dir]); return $this; }