How do I sort this so it displays the results alpha? if ($handle = opendir("/home/mysite/public_html/Store/{$thestore}/Images/")) { //echo "Directory handle: $handle\n"; //echo "Files:\n"; while (false !== ($file = readdir($handle))) { if (strlen($file) >3){ echo "<OPTION Value = '"; echo "Store/{$thestore}/Images/{$file}"; echo "'>"; echo "$file"; echo "</OPTION>"; } } closedir($handle); } if ($handle = opendir("/home/mysite/public_html/Images/Backgrounds/")) { //echo "Directory handle: $handle\n"; //echo "Files:\n"; while (false !== ($file = readdir($handle))) { if (strlen($file) >3){ echo "<OPTION Value = '"; echo "Images/Backgrounds/{$file}"; echo "'>"; echo "$file"; echo "</OPTION>"; } } closedir($handle); } ?> -------- Thanks for any replies