metti la lista in un array e poi esegui sort().
Codice PHP:
if ($handleww = opendir('../img/img/archivioimmagini/'.$album)) {
while (false !== ($filee = readdir($handleww))) {
if ($filee != "." && $filee != "..") {
$lista[] = $filee;
}
}
}
closedir($handleww);
sort($lista);
foreach($lista as $key) {
echo "$key";
}