protected function needToSortColumns()
    {
        foreach ($this->config->getColumns() as $column) {
            if ($column->getOrder() !== 0) {
                return true;
            }
        }
        return false;
    }
protected function needToSortColumns()
    {
        foreach ($this->config->getColumns() as $column) {
            if ($column->getOrder() !== 0) {
                return true;
            }
        }
        return false;
    }
protected function needToSortColumns ( ) { foreach ( $ this -> config -> getColumns ( ) as $ column ) { if ( $ column -> getOrder ( ) !== 0 ) { return true ; } } return false ; }
Returns true if columns must be sorted.

@return bool
Returns true if columns must be sorted .