private function getDefaultSortable()
    {
        if (config('columnsortable.default_first_column', false)) {
            $sortBy = array_first($this->sortable);
            if ( ! is_null($sortBy)) {
                return [$sortBy => config('columnsortable.default_direction', 'asc')];
            }
        }

        return null;
    }
private function getDefaultSortable()
    {
        if (config('columnsortable.default_first_column', false)) {
            $sortBy = array_first($this->sortable);
            if ( ! is_null($sortBy)) {
                return [$sortBy => config('columnsortable.default_direction', 'asc')];
            }
        }

        return null;
    }
private function getDefaultSortable ( ) { if ( config ( 'columnsortable.default_first_column' , false ) ) { $ sortBy = array_first ( $ this -> sortable ) ; if ( ! is_null ( $ sortBy ) ) { return [ $ sortBy => config ( 'columnsortable.default_direction' , 'asc' ) ] ; } } return null ; }
Returns the first element of defined sortable columns from the Model

@return array|null
Returns the first element of defined sortable columns from the Model