code: public static <K extends Comparable<? super K>, V> List<Map.Entry<K, V>> sortedEntries(Map<K, V> map) {
      return sortedEntries(map.entrySet());
    }
docs: Returns a List of entries in the map, sorted by key.