docs: public static <K, V> LinkedHashMap<K, V> sortToMap(Collection<Map.Entry<K, V>> entryCollection, Comparator<Map.Entry<K, V>> comparator) {
  		List<Map.Entry<K, V>> list = new LinkedList<>(entryCollection);
  		Collections.sort(list, comparator);
  
  		LinkedHashMap<K, V> result = new LinkedHashMap<>();
  		for (Map.Entry<K, V> entry : list) {
  			result.put(entry.getKey(), entry.getValue());
  		}
  		return result;
  	}