YOu should do a:
reset($retVal);
after doing that rsort($retVal);
## Load Directory Into Array
$path = "D:Program Files/Adobe/Acrobat 4.0/PDF Output/";
$handle=opendir($path);
while ($file = readdir($handle))
$retVal[count($retVal)] = $file;
## Clean up and reverse sort
I'm sure I stole this code from somewhere else...
//Load Directory Into Array
$path = "D:Program Files/Adobe/Acrobat 4.0/PDF Output/";
$handle=opendir($path);
while ($file = readdir($handle))
$retVal[count($retVal)] = $file;
//Clean up and reverse sort
closedir($handle);
rsort($retVal);
ech