src/Column.php
public function isSorted()
    {
        if (Request::input(config('gbrock-tables.key_field')) == $this->getField()) {
            return true;
        }

        if (!Request::input(config('gbrock-tables.key_field')) && $this->model && $this->model->getSortingField() == $this->getField()) {
            // No sorting was requested, but this is the default field.
            return true;
        }

        return false;
    }
public function isSorted()
    {
        if (Request::input(config('gbrock-tables.key_field')) == $this->getField()) {
            return true;
        }

        if (!Request::input(config('gbrock-tables.key_field')) && $this->model && $this->model->getSortingField() == $this->getField()) {
            // No sorting was requested, but this is the default field.
            return true;
        }

        return false;
    }
public function isSorted ( ) { if ( Request :: input ( config ( 'gbrock-tables.key_field' ) ) == $ this -> getField ( ) ) { return true ; } if ( ! Request :: input ( config ( 'gbrock-tables.key_field' ) ) && $ this -> model && $ this -> model -> getSortingField ( ) == $ this -> getField ( ) ) { // No sorting was requested, but this is the default field. return true ; } return false ; }
Checks if this column is currently being sorted.
Checks if this column is currently being sorted .