docs: public static <K extends Comparable<? super K>, V> List<Map.Entry<K, V>> sortedEntries(Collection<Map.Entry<K, V>> entries) {
      List<Entry<K,V>> entriesList = new ArrayList<Map.Entry<K, V>>(entries);
      Collections.sort(entriesList, new Comparator<Map.Entry<K, V>>() {
        public int compare(Map.Entry<K, V> e1, Map.Entry<K, V> e2) {
          return e1.getKey().compareTo(e2.getKey());
        }
      });
      return entriesList;
    }