original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Update the information .