public static class ERXArrayUtilities.SortOperator extends java.lang.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 |
|---|---|
java.lang.Object |
compute(NSArray array,
java.lang.String keypath)
Sorts the given array by the keypath.
|
public SortOperator(NSSelector selector)
public java.lang.Object compute(NSArray array, java.lang.String keypath)
compute in interface NSArray.Operatorarray - array to be sorted.keypath - sort key.Copyright © 2002 – 2022 Project Wonder.