original_string: public function asort(&$array, $sortFlag = self::SORT_REGULAR)
      {
          $intlToPlainFlagMap = [
              self::SORT_REGULAR => \SORT_REGULAR,
              self::SORT_NUMERIC => \SORT_NUMERIC,
              self::SORT_STRING => \SORT_STRING,
          ];
  
          $plainSortFlag = isset($intlToPlainFlagMap[$sortFlag]) ? $intlToPlainFlagMap[$sortFlag] : self::SORT_REGULAR;
  
          return asort($array, $plainSortFlag);
      }
code: public function asort(&$array, $sortFlag = self::SORT_REGULAR)
      {
          $intlToPlainFlagMap = [
              self::SORT_REGULAR => \SORT_REGULAR,
              self::SORT_NUMERIC => \SORT_NUMERIC,
              self::SORT_STRING => \SORT_STRING,
          ];
  
          $plainSortFlag = isset($intlToPlainFlagMap[$sortFlag]) ? $intlToPlainFlagMap[$sortFlag] : self::SORT_REGULAR;
  
          return asort($array, $plainSortFlag);
      }
code_tokens: public function asort ( & $ array , $ sortFlag = self :: SORT_REGULAR ) { $ intlToPlainFlagMap = [ self :: SORT_REGULAR => \ SORT_REGULAR , self :: SORT_NUMERIC => \ SORT_NUMERIC , self :: SORT_STRING => \ SORT_STRING , ] ; $ plainSortFlag = isset ( $ intlToPlainFlagMap [ $ sortFlag ] ) ? $ intlToPlainFlagMap [ $ sortFlag ] : self :: SORT_REGULAR ; return asort ( $ array , $ plainSortFlag ) ; }
docstring: Sort array maintaining index association.
  
  @param array &$array   Input array
  @param int   $sortFlag Flags for sorting, can be one of the following:
  Collator::SORT_REGULAR - compare items normally (don't change types)
  Collator::SORT_NUMERIC - compare items numerically
  Collator::SORT_STRING - compare items as strings
  
  @return bool True on success or false on failure
docstring_tokens: Sort array maintaining index association .