Documentation for infix
unicmp assembled from the following types:
multi sub infix:<unicmp>(Str \a, Str \b --> Order)multi sub infix:<unicmp>(Pair \a, Pair \b --> Order)multi sub infix:<coll>(Pair \a, Pair \b --> Order)
Unlike the cmp operator which sorts according to codepoint,
coll sort according to how most users would expect, that is, disregarding aspects of the particular character like capitalization.
say 'a' unicmp 'Z'; # Lesssay 'a' coll 'Z'; # Lesssay 'a' cmp 'Z'; # More
The main difference between
unicmp is that the behavior of the former can be changed by the
$*COLLATION dynamic variable.
NOTE: These are not yet implemented in the JVM.