Sıralama kriteri $last_modified değişkenine göre olacak, aklımda ksort() var, ancak bunun için tarihleri array() içine almak lazım.
// get file list
function get_file_list($file_path)
{
global $path;
$opendir = opendir($file_path);
while ( gettype($file = readdir($opendir) ) != boolean )
{
if ( is_file("$file_path/$file") && ($file !='index.html') && ($file !='index.htm') && ($file !='.htaccess') )
{
// Change to the name of the file
$last_modified = filemtime($file_path . $file);
echo '<ul class="detals_list">';
//echo '<li><strong>' . date("dS F, Y H:i T", $last_modified) . '</strong></li>';
echo ' <li><strong>' . turkce_tarih($last_modified) . '</strong></li>';
echo ' <li class="download"> <strong><a href="' . $file_path . $file . '" title="' . $file . '">İndir</a></strong> [' . get_filesize(filesize($path . $file)) . ']</li>';
echo ' <li><span class="gensmall" style="color:gray">' . md5_file($path . $file) . '</span></li>';
echo '</ul>';
}
}
closedir ($opendir);
}şu çalışan örnek te burada: http://phpbb3.canversoft.net/