protected function isSorted() { $this->sort = app('request')->get('_sort'); if (empty($this->sort)) { return false; } return isset($this->sort['column']) && $this->sort['column'] == $this->name; }