views:

24

answers:

0

Hi Guys, I am not getting the idea to sort names from each object in the list , please help me. for(int i=0;i<[artistsList count];i++) { Search *obj=[artistsList objectAtIndex:i]; // It is not correct way,I am just explaining the problem [artistsList sortUsingSelector:@selector(myCustomCompare:obj.name)]; } I need custom method to sort dynamically and store the result in the artistsList. Pleas healp me.