Components/Column.php
public function getAutoInvertedSort()
    {
        $result = [];
        foreach ($this->getSort() as $sort => $order) {
            $result[$sort] = ($order == 'asc' ? 'desc' : 'asc');
        }

        return $result;
    }
public function getAutoInvertedSort()
    {
        $result = [];
        foreach ($this->getSort() as $sort => $order) {
            $result[$sort] = ($order == 'asc' ? 'desc' : 'asc');
        }

        return $result;
    }
public function getAutoInvertedSort ( ) { $ result = [ ] ; foreach ( $ this -> getSort ( ) as $ sort => $ order ) { $ result [ $ sort ] = ( $ order == 'asc' ? 'desc' : 'asc' ) ; } return $ result ; }
Get sort, with auto inverted orders.

@return array
Get sort with auto inverted orders .