using sortOn on Arrays [ASCENDING, DESCENDING]
how do I get the sortOn function for an Array to support BOTH the NUMERIC and ASCENDING sort orders? DESCENDING seems to be the default or something.
I have 5 fields, all NUMERIC and I want to sort the first by DESCENDING, 2nd field is ASCENDING, 3rd field DESCENDING, 4th field DESCENDING, 5th field ASCENDING.....how do I achieve this?
this is for a league standings list, so wins is DESCENDING, losses ASCENDING, ties DESCENDING, points scored is DESCENDING, and points scored against is ASCENDING.....just to give you an idea.