public function afterValidation() { if (!$this->sortorder) { $this->sortorder = $this->getUpperSortorder(); } }