Order files in Ubuntu server in alpha order?

Posted by Josh Sherick on Server Fault See other posts from Server Fault or by Josh Sherick
Published on 2012-07-02T15:05:48Z Indexed on 2012/07/02 15:17 UTC
Read the original article Hit count: 411

Filed under:
|
|

I have a PHP script that is for personal use that goes through a folder and lists all the pictures in the folder. The pictures are pages from a book, so it is important that they be in order. They are named so that in alphabetical order, they are also in the correct page order. I had it running on my Mac OS server, and it worked fine, listing them in order because Mac OS apparently keeps files alphabetically. Now, since I've switched to Ubuntu, it is listing them in a seemingly random order. Is there any way to order files in Ubuntu server so that they are in alphabetical order?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about filesystems