protected function setSort()
{
$this->sort = Input::get('_sort', []);
if (!is_array($this->sort)) {
return;
}
if (empty($this->sort['column']) || empty($this->sort['type'])) {
return;
}
if (str_contains($this->sort['column'], '.')) {
$this->setRelationSort($this->sort['column']);
} else {
$this->queries->push(['method' => 'orderBy', 'arguments' => [$this->sort['column'], $this->sort['type']]]);
}
}