protected function isSorted()
    {
        $this->sort = app('request')->get($this->grid->model()->getSortName());

        if (empty($this->sort)) {
            return false;
        }

        return isset($this->sort['column']) && $this->sort['column'] == $this->name;
    }
protected function isSorted()
    {
        $this->sort = app('request')->get($this->grid->model()->getSortName());

        if (empty($this->sort)) {
            return false;
        }

        return isset($this->sort['column']) && $this->sort['column'] == $this->name;
    }
protected function isSorted ( ) { $ this -> sort = app ( 'request' ) -> get ( $ this -> grid -> model ( ) -> getSortName ( ) ) ; if ( empty ( $ this -> sort ) ) { return false ; } return isset ( $ this -> sort [ 'column' ] ) && $ this -> sort [ 'column' ] == $ this -> name ; }
Determine if this column is currently sorted.

@return bool
Determine if this column is currently sorted .