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(com.webobjects.foundation.NSSelector selector) |
Modifier and Type | Method and Description |
---|---|
Object |
compute(NSArray array,
String keypath)
Sorts the given array by the keypath.
|
public Object compute(NSArray array, String keypath)
compute
in interface NSArray.Operator
array
- array to be sorted.keypath
- sort key.Copyright © 2002 – 2020 Project Wonder.