@Beta
  public static <K, V> ImmutableSortedMap<K, V> copyOf(
      Iterable<? extends Entry<? extends K, ? extends V>> entries,
      Comparator<? super K> comparator) {
    return fromEntries(checkNotNull(comparator), false, entries);
  }
@Beta
  public static <K, V> ImmutableSortedMap<K, V> copyOf(
      Iterable<? extends Entry<? extends K, ? extends V>> entries,
      Comparator<? super K> comparator) {
    return fromEntries(checkNotNull(comparator), false, entries);
  }
@ Beta public static < K , V > ImmutableSortedMap < K , V > copyOf ( Iterable < ? extends Entry < ? extends K , ? extends V > > entries , Comparator < ? super K > comparator ) { return fromEntries ( checkNotNull ( comparator ) , false , entries ) ; }
Returns an immutable map containing the given entries, with keys sorted by the provided
comparator.

@throws NullPointerException if any key or value in {@code map} is null
@throws IllegalArgumentException if any two keys are equal according to the comparator
@since 19.0
Returns an immutable map containing the given entries with keys sorted by the provided comparator .