public function getSortConditionsDefault()
    {
        $sortConditions = [];
        foreach ($this->getColumns() as $column) {
            /* @var $column \ZfcDatagrid\Column\AbstractColumn */
            if ($column->hasSortDefault() === true) {
                $sortDefaults = $column->getSortDefault();

                $sortConditions[$sortDefaults['priority']] = [
                    'column' => $column,
                    'sortDirection' => $sortDefaults['sortDirection'],
                ];

                $column->setSortActive($sortDefaults['sortDirection']);
            }
        }

        ksort($sortConditions);

        return $sortConditions;
    }
public function getSortConditionsDefault()
    {
        $sortConditions = [];
        foreach ($this->getColumns() as $column) {
            /* @var $column \ZfcDatagrid\Column\AbstractColumn */
            if ($column->hasSortDefault() === true) {
                $sortDefaults = $column->getSortDefault();

                $sortConditions[$sortDefaults['priority']] = [
                    'column' => $column,
                    'sortDirection' => $sortDefaults['sortDirection'],
                ];

                $column->setSortActive($sortDefaults['sortDirection']);
            }
        }

        ksort($sortConditions);

        return $sortConditions;
    }
public function getSortConditionsDefault ( ) { $ sortConditions = [ ] ; foreach ( $ this -> getColumns ( ) as $ column ) { /* @var $column \ZfcDatagrid\Column\AbstractColumn */ if ( $ column -> hasSortDefault ( ) === true ) { $ sortDefaults = $ column -> getSortDefault ( ) ; $ sortConditions [ $ sortDefaults [ 'priority' ] ] = [ 'column' => $ column , 'sortDirection' => $ sortDefaults [ 'sortDirection' ] , ] ; $ column -> setSortActive ( $ sortDefaults [ 'sortDirection' ] ) ; } } ksort ( $ sortConditions ) ; return $ sortConditions ; }
Get the default sort conditions defined for the columns.

@return array
Get the default sort conditions defined for the columns .