static @NotNull Comparator<? super Key> comparator() {
    return KeyImpl.COMPARATOR;
  }
Gets the comparator.

<p>The {@link #value() value} is compared first, followed by the {@link #namespace() namespace}.</p>

@return a comparator for keys
@since 4.10.0
key/src/main/java/net/kyori/adventure/key/Key.java