STRING_CODEPOINT_COMPARATOR

A comparator that compares UTF-16 strings / char sequences according to Unicode code point order. This can be used to verify BytesRef order.

Warning: This comparator is rather inefficient, because it converts the strings to a int[] array on each invocation.