In Operators§

See primary documentation in context for infix coll

multi infix:<coll>(Str:D \aStr:D \b --> Order:D)
multi infix:<coll>(Cool:D \aCool:D \b --> Order:D)
multi infix:<coll>(Pair:D \aPair:D \b --> Order:D)

coll is a sorting operator that takes pairs of Strs, Cools or Pairs and returns an Order that uses the $*COLLATION order. The default behavior disregards diacritic marks and capitalization, for instance.

say "b" cmp "à";  # OUTPUT: «Less␤» 
say "b" coll "à"# OUTPUT: «More␤»

In the first case, lexicographic or codepoint order is taken into account. In the second, which uses coll, the diacritic is not considered and sorting happens according to intuitive order.

NOTE: These are not yet implemented in the JVM.