private function updateInformation(array $inputInformation, array $updateInformation)
    {
        foreach ($inputInformation as $name => $information) {
            $columnName = $information['colname'] . '__sort';
            $position   = \array_flip(\array_keys($updateInformation))[$name];

            $updateInformation = \array_merge(
                \array_slice($updateInformation, 0, ($position + 1)),
                [
                    $columnName => [
                        'colname' => $columnName,
                        'type'    => 'filesort'
                    ]
                ],
                \array_slice($updateInformation, ($position ? $position - 1 : $position + 1))
            );
        }

        return $updateInformation;
    }
private function updateInformation(array $inputInformation, array $updateInformation)
    {
        foreach ($inputInformation as $name => $information) {
            $columnName = $information['colname'] . '__sort';
            $position   = \array_flip(\array_keys($updateInformation))[$name];

            $updateInformation = \array_merge(
                \array_slice($updateInformation, 0, ($position + 1)),
                [
                    $columnName => [
                        'colname' => $columnName,
                        'type'    => 'filesort'
                    ]
                ],
                \array_slice($updateInformation, ($position ? $position - 1 : $position + 1))
            );
        }

        return $updateInformation;
    }
private function updateInformation ( array $ inputInformation , array $ updateInformation ) { foreach ( $ inputInformation as $ name => $ information ) { $ columnName = $ information [ 'colname' ] . '__sort' ; $ position = \ array_flip ( \ array_keys ( $ updateInformation ) ) [ $ name ] ; $ updateInformation = \ array_merge ( \ array_slice ( $ updateInformation , 0 , ( $ position + 1 ) ) , [ $ columnName => [ 'colname' => $ columnName , 'type' => 'filesort' ] ] , \ array_slice ( $ updateInformation , ( $ position ? $ position - 1 : $ position + 1 ) ) ) ; } return $ updateInformation ; }
Update the information.

@param array $inputInformation  The input information, who add to the update information.
@param array $updateInformation The update information, who becomes update from the input information.

@return array
Update the information .