Lines Matching refs:sort_opts
104 $sort_opts = [];
288 $sort_opts['key'][] = $key;
319 $sort_opts['dir'][] = $dir;
336 $sort_opts['type'][] = $type;
362 return [$sort_array, $sort_opts, $group_opts];
604 * @param mixed $sort_opts : options for how the array should be sorted
611 final public function msort(array &$sort_array, $sort_opts): bool argument
615 if (is_array($sort_opts) && $sort_opts !== []) {
616 if (isset($sort_opts['assoc'])) {
626 $keys = $sort_opts['key'];
632 …$result = $sort_func($sort_array, function (array $left, array $right) use ($sort_opts, $keys, $se…
639 switch ($sort_opts['type'][$idx]) {
674 $cmp = $key_cmp * (($sort_opts['dir'][$idx] === $self::MSORT_DESC) ? -1 : 1);