I\'m trying to sort an array, filled with objects from a class i wrote. The class i wrote contains an NSString itself, as the \"name\". So what i wanna do, is to sort the ar
You can use the method sortedArrayUsingComparator:
sortedArrayUsingComparator
NSArray *sortedArray = [anArray sortedArrayUsingComparator:^(MyClass *a, MyClass *b) { return [a.name caseInsensitiveCompare:b.name]; }];