Encore\Admin\Grid\Column::isSorted PHP Method

isSorted() protected method

Determine if this column is currently sorted.
protected isSorted ( ) : boolean
return boolean
    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;
    }