Declared in ETArray.h

Overview

NSSet (ETSorting) is a helper category for sorting NSSet objects.

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