Prado\Data\Common\Mssql\TMssqlCommandBuilder::reverseDirection PHP Метод

reverseDirection() защищенный Метод

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