Arranging the created text files using FILEX in latest first manner

I am generating .txt files in a folder on a sdcard using FILEX. The problem is all the files created have a same timestamp of 01/01/2017. I had to create this files such that the latest file remains at the top of the folder while the oldest goes down automatically. It is same as sorting the folder by date in windows. How can i do it?. Can anyone help