You are here

initWithSortProperty:sortAscending

- (id)initWithSortProperty:(NSString *)sortProperty sortAscending:(BOOL)sortAscending - Initializes a listing context with a specific sort property and sort direction.

For the maxItems and skipCount properties the default values will be used. The default values are tabulated in the init method documentation.

Parameters

(NSString *)sortProperty
The property to sort on.
(BOOL) sortAscending
Set to true to specify ascending sort order.

Returns

(id) - returns the initialized listing context.

Example