I have and array of custom objects of Person Class
Person : NSObject{ NSString *firstName; NSString *lastName; NSString *age; } NSMutableArray
You can try this is custom object sorting for an array
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"Firstname" ascending:NO selector:@selector(compare:)]; [Array sortUsingDescriptors:[NSArray arrayWithObjects:sortDescriptor, nil]];