er sorry, yeah bad questions. I have an upload script that also lists the files a a certain order, but it's doing it in some random order.
Heres the code for the sorting part
PHP Code:
$handle=opendir($upload_dir);
$filelist = "";
while ($file = readdir($handle)) {
if(!is_dir($file) && !is_link($file)) {
$filelist .= "
<table border=1><tr><td bgcolor='white' width='100%'><a href='$upload_dir$file'>".$file."</a></td>";
$filelist .="";
}