NumericComparator to sort strings
using numeric comparison rules using the
Comparator compare
method.
If digits is specified, the comparisons
will be performed using the provided precision.
The default precision is 9.
primes = .Array~of(23, 19, 17, 13, 11, 7, 5, 3, 2)
primes~sortWith(.NumericComparator~new) -- 2, 3, 5, 7, 11, 13, 17, 19, 23