if ($this->isInstanceOf(SortableInterface::class)) { | if ($this->isInstanceOf(SortableInterface::class)) { | ||||
$crud->setDefaultSort(['position' => 'ASC']); | $crud->setDefaultSort(['position' => 'ASC']); | ||||
}else{ | |||||
$crud->setDefaultSort(['id' => 'DESC']); | |||||
} | } | ||||
return $crud; | return $crud; |