Reading ROOT-files in directory in correct order

Hi, Rooters. I have a problem. I have macro for ROOT-files reading in special directory :
list_files.C (1.9 KB)

It is necessary to read that filelist in order which can be produced by “ls -ltrh” command in that directory. (So, I want to that macro read in chronological order that files).

But that macro reads that files in “ls” command manner (if i try to apply Sort function to that filelist, if i don’t that macro reads in queer order.

Could you help me?

Thanks in advance.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.