NSSet(ETSorting) Category Reference
Declared in | ETArray.h |
Instance Methods
sortByField:
Sorts the NSSet and returns it sorted ascending.
- (NSArray *)sortByField:(NSString *)field
Parameters
- field
The field used as the key to sort the NSSet.
Return Value
An array build from the NSSet objects sorted by the field in ascending order.
Declared In
ETArray.h
sortByField:ascending:
Sorts the NSSet and returns it sorted in the direction provided.
- (NSArray *)sortByField:(NSString *)field ascending:(BOOL)ascending
Parameters
- field
The field used as the key to sort the NSSet.
- ascending
Flag indicating wether or not the sorting should be done ascending or descending.
Return Value
An array build from the NSSet objects sorted by the field in the provided ascending order.
Declared In
ETArray.h