SortFunction<Object> myComparefn = new SortFunction<Object>() {
@Override
public int $invoke(Object x, Object y) {
// inverse function from the normal comparison, should sort in descending order
String xS = String(x);
String yS = String(y);
return -xS.compareToIgnoreCase(yS);
}
};
Array<Object> alphabetR = $array(null, 2, 1, "X", -1, "a", true, obj, NaN, Double.POSITIVE_INFINITY);