Lines Matching defs:sort_array
97 * @return array $sort_array array of array(one value for each key to be sorted)
105 $sort_array = [];
144 $row = &$sort_array[$cnt];
364 return [$sort_array, $sort_opts, $group_opts];
544 * @param array $sort_array full sorting array, all meta columns included
547 final public function filterMetadata(array $sort_array, array $filter): array
557 $sort_array = array_filter($sort_array, static function ($row) use ($metakey, $expr, $exclude, $that) {
572 return $sort_array;
597 * @param array $sort_array : multi-dimensional array of arrays, where the first index refers to
613 final public function msort(array &$sort_array, $sort_opts): bool
634 $result = $sort_func($sort_array, function (array $left, array $right) use ($sort_opts, $keys, $self) {
688 * @param array $sort_array : array to be grouped (result of 'msort' function)
699 final public function mgroup(array $sort_array, array $keys, $group_opts = []): array
705 if ($sort_array === []) {
708 foreach ($sort_array as $row) {
717 foreach ($sort_array as $row) {
718 $this->addHeading($results, $sort_array, $group_opts, $level, $idx, $prevs);
733 private function addHeading(&$results, $sort_array, $group_opts, $level, $idx, &$prevs): void
739 $this->addHeading($results, $sort_array, $group_opts, $level - 1, $idx, $prevs);
745 $cur = $sort_array[$idx][$key];
753 $cur = strftime($date_format, $sort_array[$idx][self::MGROUP_REALDATE]);