I wrote a piece of code to read files from a directory. Noticing that it reads the files in some unknown order. How do i make it read order by the name of the file?
Thanks
read the filenames into an array, then sort it using one of the sort functions, than put out the names from the array.