From 155e63c930bf2fdc260994a62baa80fe5f5ab764 Mon Sep 17 00:00:00 2001 From: Christopher Smith Date: Sun, 27 Jan 2013 20:32:41 +0000 Subject: add documentation for sort parameter, change false to 'natural' --- inc/search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/search.php b/inc/search.php index 5c70b0305..6590d7342 100644 --- a/inc/search.php +++ b/inc/search.php @@ -19,9 +19,10 @@ if(!defined('DOKU_INC')) die('meh.'); * @param callback $func Callback (function name or array with object,method) * @param string $dir Current directory beyond $base * @param int $lvl Recursion Level + * @param mixed $sort 'natural' to use natural order sorting (default); 'date' to sort by filemtime. * @author Andreas Gohr */ -function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort=false){ +function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort='natural'){ $dirs = array(); $files = array(); $filepaths = array(); -- cgit v1.2.3