Question
Sorting an array of filenames by filetype?
I have an array of filenames read from a directory list. I
can parse the
file type from each filename using a function. How would I then sort the
array by their respective file type, so that all PDF files sort together in
the array, for example? Or would it be easier to just loop through the
array by filetype, printing each matching array value?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================
file type from each filename using a function. How would I then sort the
array by their respective file type, so that all PDF files sort together in
the array, for example? Or would it be easier to just loop through the
array by filetype, printing each matching array value?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================