diff --git a/index.php b/index.php index 62be6eb..f5d957c 100644 --- a/index.php +++ b/index.php @@ -71,10 +71,12 @@ if (isset($_GET['f'])) { $tr = array('(' => '\(', ')' => '\)'); $f = strtr($_GET['f'], $tr); $files = array_values(preg_grep('/.*'.$f.'.*/i', $files)); + $dirs = array_values(preg_grep('/.*'.$f.'.*/i', $dirs)); $filter='&f='.$_GET['f']; } } + // Sort and Reverse Filelist natcasesort($files); $files = array_reverse($files);