Possible Duplicate:
How to sort a NSArray alphabetically?
I am using below code to load data into UITableView from NSArray.
How can I sort them in alphabetical order ?
Mine is NSArray
not NSMutableArray
nor I am using Dictionary
defaultVot = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:pathToVot error:&error];
NSString *fileName = [[defaultVot objectAtIndex:indexPath.row-1] lastPathComponent];
NSString *filenameWithoutExtension = [fileName substringToIndex:[fileName length] -4];
cell.textLabel.text = filenameWithoutExtension;