Prado\Data\Common\Mssql\TMssqlCommandBuilder::reverseDirection PHP Method

reverseDirection() protected method

protected reverseDirection ( $orders ) : array
return array ordering with reversed direction.
    protected function reverseDirection($orders)
    {
        foreach ($orders as $column => $direction) {
            $orders[$column] = strtolower(trim($direction)) === 'desc' ? 'ASC' : 'DESC';
        }
        return $orders;
    }