- Declared In:
- NSArray+Extensions.h
Rearranging the array
- - shuffle
- - sort
- - sortByComparingAttribute:
- (void)shuffle
Randomly changes the order of the objects in the receiving array.
- (void)sort
Sorts objects according to their compare: method
- (void)sortByComparingAttribute:(NSString *)attributeName
Sorts objects according to the values of their attributeName. These are retrieved using key/value coding.