protected function applyOrder() { $result = parent::applyOrder(); if (!$result) { return false; } if ($this->orderDirection === self::ORDER_DIRECTION_ASC) { $this->parents = $this->orderMethods[$this->orderMethod]->invokeAscending($this->parents); } else { $this->parents = $this->orderMethods[$this->orderMethod]->invokeDescending($this->parents); } return true; }