I didn't see any sorting in your code.  so maybe I
missed something, however you could try natcasesort()
function.

your new line would look like this:

while (false !== ($file = readdir($handle))) 
$filenames[] = natcasesort($file);

please note that this sorts in alphanumeric order and
not case sensitive.

Hope this helps,

Robert Fisher
Axis Solutions, Inc.



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to