private function handleSorting(
        $information,
        GroupAndSortingDefinitionInterface $definition
    ) {
        if ($information['ismanualsort']) {
            $definition
                ->add()
                ->setManualSorting()
                ->setProperty('sorting')
                ->setSortingMode(GroupAndSortingInformationInterface::SORT_ASC);
            return;
        }
        if ($information['col_name']) {
            $definition
                ->add()
                ->setProperty($information['col_name'])
                ->setSortingMode($information['rendersort']);
        }
    }
private function handleSorting(
        $information,
        GroupAndSortingDefinitionInterface $definition
    ) {
        if ($information['ismanualsort']) {
            $definition
                ->add()
                ->setManualSorting()
                ->setProperty('sorting')
                ->setSortingMode(GroupAndSortingInformationInterface::SORT_ASC);
            return;
        }
        if ($information['col_name']) {
            $definition
                ->add()
                ->setProperty($information['col_name'])
                ->setSortingMode($information['rendersort']);
        }
    }
private function handleSorting ( $ information , GroupAndSortingDefinitionInterface $ definition ) { if ( $ information [ 'ismanualsort' ] ) { $ definition -> add ( ) -> setManualSorting ( ) -> setProperty ( 'sorting' ) -> setSortingMode ( GroupAndSortingInformationInterface :: SORT_ASC ) ; return ; } if ( $ information [ 'col_name' ] ) { $ definition -> add ( ) -> setProperty ( $ information [ 'col_name' ] ) -> setSortingMode ( $ information [ 'rendersort' ] ) ; } }
Set the correct sorting value.

@param array                              $information The sorting and group information.
@param GroupAndSortingDefinitionInterface $definition  The sorting and group definition.

@return void
Set the correct sorting value .