Product Site

5.4.5.2.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.

The two strings are compared using a caseless comparison.

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