Hi,
I've read in the contents of a directory into a list as follows:
set tempdirContents [ lsort [ glob -nocomplain -types { d } -- * ] ]
What I want to do is sort the list based on the last modify time (so the last modify time is the last entry in the list).
Any ideas on a quick way to do this?
Thanks
I've read in the contents of a directory into a list as follows:
set tempdirContents [ lsort [ glob -nocomplain -types { d } -- * ] ]
What I want to do is sort the list based on the last modify time (so the last modify time is the last entry in the list).
Any ideas on a quick way to do this?
Thanks