
Classes | |
| class | ERXSortOrderings |
Public Member Functions | |
| ERXSortOrderings | array () |
| boolean | equals (Object obj) |
| ERXSortOrdering (ERXKey key, NSSelector selector) | |
| ERXSortOrdering (String key, NSSelector selector) | |
| ERXSortOrderings | then (EOSortOrdering nextSortOrdering) |
Static Public Member Functions | |
| static ERXSortOrdering | sortOrderingWithKey (ERXKey key, NSSelector selector) |
| static ERXSortOrdering | sortOrderingWithKey (String key, NSSelector selector) |
Package Functions | |
| public< T > void | sort (NSMutableArray< T > array) |
| public< T > NSArray< T > | sorted (NSArray< T > array) |
Examples:
Person.COMPANY.dot(Company.NAME).asc().then(Person.FIRST_NAME.desc())
| ERXSortOrdering | ( | String | key, | |
| NSSelector | selector | |||
| ) |
Constructs an ERXSortOrdering (see EOSortOrdering).
| key | the key to sort on | |
| selector | the sort selector |
| ERXSortOrdering | ( | ERXKey | key, | |
| NSSelector | selector | |||
| ) |
Constructs an ERXSortOrdering (see EOSortOrdering).
| key | the key to sort on | |
| selector | the sort selector |
| ERXSortOrderings array | ( | ) |
Returns this sort ordering as an array.
| boolean equals | ( | Object | obj | ) |
Provide the equals() method missing from EOSortOrder.
| obj | the Object to compare to |
true if obj is an EOSortOrder with the same key and selector as this object | public<T> void sort | ( | NSMutableArray< T > | array | ) | [package] |
Sorts the given array with this sort ordering.
| <T> | the type of the array | |
| array | the array to sort |
| public<T> NSArray<T> sorted | ( | NSArray< T > | array | ) | [package] |
Returns an array sorted with this sort ordering.
| <T> | the type of the array | |
| array | the array to sort |
| static ERXSortOrdering sortOrderingWithKey | ( | ERXKey | key, | |
| NSSelector | selector | |||
| ) | [static] |
Constructs an ERXSortOrdering (see EOSortOrdering).
| key | the key to sort on | |
| selector | the sort selector |
| static ERXSortOrdering sortOrderingWithKey | ( | String | key, | |
| NSSelector | selector | |||
| ) | [static] |
Constructs an ERXSortOrdering (see EOSortOrdering).
| key | the key to sort on | |
| selector | the sort selector |
| ERXSortOrderings then | ( | EOSortOrdering | nextSortOrdering | ) |
Returns ERXSortOrderings with this sort ordering followed by the provided next sort ordering.
| nextSortOrdering | the next sort ordering to chain to this |
1.5.8