Skip to content
Snippets Groups Projects
Commit 155e63c9 authored by Christopher Smith's avatar Christopher Smith
Browse files

add documentation for sort parameter, change false to 'natural'

parent fe82d751
No related branches found
No related tags found
No related merge requests found
......@@ -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 <andi@splitbrain.org>
*/
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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment