Hi, all.
I would like to get the list of filenames in a current directory sorted by the date of the modification (from the most recent to the odlest). The following code returns only the files in the directory:
NSArray* dirCont = [fm directoryContentsAtPath: [fm currentDirectoryPath]];
Is there a way to get the filenames in dirCont sorted by some file attribute (for example NSFileModificationDate) directly without sorting the content on hand?
TNX, UruLama.
I would like to get the list of filenames in a current directory sorted by the date of the modification (from the most recent to the odlest). The following code returns only the files in the directory:
NSArray* dirCont = [fm directoryContentsAtPath: [fm currentDirectoryPath]];
Is there a way to get the filenames in dirCont sorted by some file attribute (for example NSFileModificationDate) directly without sorting the content on hand?
TNX, UruLama.