Possible Duplicate:
How do I find the last modified file in a directory in Java?
I am trying to retrieve files from a directory in the order in which they were created. This has become an issue using Java. The listFiles() method in the File class does not guarantee an order in which the files are returned. Are there any other ways of retrieving the files by the order in which they were created in the directory?