Lines Matching defs:array
105 * @param array $array The input array.
110 public static function sort(&$array)
114 return $collator->sort($array);
116 return sort($array, SORT_NATURAL | SORT_FLAG_CASE);
124 * @param array $array The input array.
129 public static function ksort(&$array)
133 return uksort($array, [$collator, 'compare']);
135 return ksort($array, SORT_NATURAL | SORT_FLAG_CASE);
143 * @param array $array The input array.
148 public static function asort(&$array)
152 return $collator->asort($array);
154 return asort($array, SORT_NATURAL | SORT_FLAG_CASE);
159 * Drop-in replacement for asort(), natsort() and natcasesort() when the parameter is an array of filenames.
161 * so the correct behavior is to sort page names and reflect this sorting in the filename array.
163 * @param array $array The input array.
169 public static function asortFN(&$array)
172 return uasort($array, function ($fn1, $fn2) use ($collator) {