You might do better by naming your files like:
YYYY-MM-DD-HH-MM-SS-XX.txt
That way they're easy to work with, and sometimes the OS will give them to you in the order you want anyway.
(note:...
Type: Posts; User: Hammer
You might do better by naming your files like:
YYYY-MM-DD-HH-MM-SS-XX.txt
That way they're easy to work with, and sometimes the OS will give them to you in the order you want anyway.
(note:...
Put the list of desired file attributes in an array, then sort that.
But, learn SQL and get yourself connected to a database, it'll be easier in the long run :)
...
How are the posts stored ? In a database, each in their own text file, or what?