Mam taki oto skrypt:
<? function getfilesize($bytes) { if ($bytes >= 1099511627776) { $suffix = \"TB\"; } elseif ($bytes >= 1073741824) { $suffix = \"GB\"; } elseif ($bytes >= 1048576) { $suffix = \"MB\"; } elseif ($bytes >= 1024) { $suffix = \"KB\"; } else { $return = $bytes; $suffix = \"Byte\"; } if ($return == 1) { $return .= \" \" . $suffix; } else { $return .= \" \" . $suffix . \"\"; } return $return; } if ($_GET[\"path\"]==\"\") { $path = \"./download\"; } else { $path=$_GET[\"path\"]; } if ($file != \".\" && $file != \"..\") { echo \"<tr><td><img src=./images/folder.gif /></td><td><a href=download.php?path=$path/$file>$file</a></td><td align=right></td><td align=right> $czas</td> </tr>\"; }else{ echo \"<tr><td><img src=./images/file.gif /></td><td><a href=$path/$file>$file</a></td><td align=right>$wielkosc</td><td align=right> $czas</td> </tr>\"; } } } } ?>
...i pytanie co zrobic zeby sortowal pliki alfabetycznie?