Lines Matching full:sort
12 use dokuwiki\Utf8\Sort;
26 * @param mixed $sort 'natural' to use natural order sorting (default);
27 * 'date' to sort by filemtime; leave empty to skip sorting.
30 function search(&$data, $base, $func, $opts, $dir = '', $lvl = 1, $sort = 'natural')
54 if (!empty($sort)) {
55 if ($sort == 'date') {
58 Sort::asortFN($files);
60 Sort::asortFN($dirs);
66 search($data, $base, $func, $opts, $dir, $lvl + 1, $sort);
420 * fulltext sort
422 * Callback sort function for use with usort to sort the data
439 return Sort::strcmp($a['id'], $b['id']);