public static class ERXArrayUtilities.SortOperator extends Object implements NSArray.Operator
NSArray.Operator
for the key sort.
This allows for key value paths like:
myArray.valueForKey("@sort.firstName");
myArray.valueForKey("@sort.lastName,firstName.length");
Constructor and Description |
---|
SortOperator(NSSelector selector) |
Modifier and Type | Method and Description |
---|---|
Object |
compute(NSArray array,
String keypath)
Sorts the given array by the keypath.
|
public SortOperator(NSSelector selector)
public Object compute(NSArray array, String keypath)
compute
in interface NSArray.Operator
array
- array to be sorted.keypath
- sort key.Copyright © 2002 – 2024 Project Wonder.