Loop over each file
--- Use the FILE/DIRECTORY INFO function to get the MOD DATE of each file.
--- Bundle the MOD DATE with the path, or whatever else you need about the file.
--- Make sure the MOD DATE is FIRST in the cluster.
--- Use auto-indexing to make an array of these clusters.
When the loop is done, run the array of clusters through the SORT 1-D ARRAY function.
Now they are sorted in increasing order (oldest first).
Reverse that array if you need youngest first.
DO what you need to with the sorted array.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks