src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
protected function evalFlagSorting($config, $flag)
    {
        if (($flag < 0) || ($flag > 12)) {
            return;
        }

        if (1 === ($flag % 2)) {
            $config->setSortingMode(GroupAndSortingInformationInterface::SORT_ASC);
        } else {
            $config->setSortingMode(GroupAndSortingInformationInterface::SORT_DESC);
        }
    }
protected function evalFlagSorting($config, $flag)
    {
        if (($flag < 0) || ($flag > 12)) {
            return;
        }

        if (1 === ($flag % 2)) {
            $config->setSortingMode(GroupAndSortingInformationInterface::SORT_ASC);
        } else {
            $config->setSortingMode(GroupAndSortingInformationInterface::SORT_DESC);
        }
    }
protected function evalFlagSorting ( $ config , $ flag ) { if ( ( $ flag < 0 ) || ( $ flag > 12 ) ) { return ; } if ( 1 === ( $ flag % 2 ) ) { $ config -> setSortingMode ( GroupAndSortingInformationInterface :: SORT_ASC ) ; } else { $ config -> setSortingMode ( GroupAndSortingInformationInterface :: SORT_DESC ) ; } }
Evaluate the contao 2 sorting flag into sorting mode.

@param GroupAndSortingInformationInterface $config The property to evaluate the flag for.
@param int                                 $flag   The flag to be evaluated.

@return void
Evaluate the contao 2 sorting flag into sorting mode .