HI! how can i sort files that are in document directory? i need do add the attribute when i create the file? : i need to sort some files that are showing in a table view, the files are in documents directory. I been searching but i'm confuse. I need to add the date attribute when i create the files or the file already have by default the data when was created (this make more sense to me) if that the case, how can i sort the NSMutableArray that contain the files.
THis is how i get the files: 

  
    NSArray  *paths3 = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString* fullPath = [paths3 objectAtIndex:0];
    fullPath = [fullPath stringByAppendingPathComponent: [self.dirList objectAtIndex:indexPath.row]];
    NSLog(@"%@", fullPath);
    