How to sort an NSMutableArray List of objects in alphabetical order.

Posted by Madan Mohan on Stack Overflow See other posts from Stack Overflow or by Madan Mohan
Published on 2010-04-16T09:59:43Z Indexed on 2010/04/16 10:03 UTC
Read the original article Hit count: 680

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about sorting

Related posts about objective-c