diff options
author | Kate Arzamastseva <pshns@ukr.net> | 2011-07-30 20:50:49 +0300 |
---|---|---|
committer | Kate Arzamastseva <pshns@ukr.net> | 2011-07-30 20:50:49 +0300 |
commit | d971ea8b02ccca4dd879a5db966670e0f3b4f102 (patch) | |
tree | 4a66cfa6febd5959d8e7e73695b85c535b524125 /inc/search.php | |
parent | 421ec38e1988e77c10f4c97aa48edfbf7aadd402 (diff) | |
download | rpg-d971ea8b02ccca4dd879a5db966670e0f3b4f102.tar.gz rpg-d971ea8b02ccca4dd879a5db966670e0f3b4f102.tar.bz2 |
issue #39 sort by date desc, saved in cookie
Diffstat (limited to 'inc/search.php')
-rw-r--r-- | inc/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/search.php b/inc/search.php index c11111efc..a6089c479 100644 --- a/inc/search.php +++ b/inc/search.php @@ -40,7 +40,7 @@ function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort=false){ } closedir($dh); if ($sort == 'date') { - @array_multisort(array_map('filemtime', $filepaths), SORT_NUMERIC, SORT_ASC, $files); + @array_multisort(array_map('filemtime', $filepaths), SORT_NUMERIC, SORT_DESC, $files); } else { sort($files); } |