# cmp. Generic, "smart" three-way comparator. multi sub infix:(Any, Any) multi sub infix:(Real:D, Real:D) multi sub infix:(Str:D, Str:D) multi sub infix:(Version:D, Version:D) # Compares strings with string semantics, numbers with number semantics, Pair objects first by key and then by value etc. # if $a eqv $b, then $a cmp $b always returns Order::Same. Otherwise Order::Less or Order::More.