How to sort an NSMutableArray List of objects in alphabetical order.
- by Madan Mohan
Hi guys,
I have an object with different values that is name,nameid, lifebeging,lifeEndiging .... etc,
for loop
{
Search *Obj=[artistslist objectAtIndex:i];// here i will get name, ids, other value for each objcet
}
0 obj.name= //string values1 get from parser
1 obj.name= //string values1
2 obj.name= //string values1
3 obj.name= //string values1
4 obj.name= //string values1
I am getting values in the artistList then i need to sort only by name not other feilds
when i use this below statement
[artistsList sortUsingSelector:@selector(NSOrderedAscending:)];
i am getting exception here ,it is not working.