public function apply($model, Repository $repository) { $model = $model->orderBy('parent_id', 'ASC'); return $model; }