Product Site

5.4.5.6.1. compare

Returns 1 if second is larger than first, 0 if the two objects are equal, and -1 if second is smaller than first, resulting in a descending sort sequence.

The two strings are compared using a caseless comparison.

Example 5.225. CaselessDescendingComparator class
wine = .Array~of("Strawberries", "cherries", "angel's kiss")
wine~sortWith(.CaselessDescendingComparator~new) -- Strawberries, cherries, angel's kiss