code: public static <K, V extends Comparable<V>> List<Entry<K, V>> sortMapEntriesByValue(@NonNull final Map<K, V> map,
                                                                                       final boolean ascending
                                                                                       ) {
        return sortMapEntries(map, new MapEntryComparator<>(false, ascending));
     }
docs: Sorts a <code>Map</code> by value.
  
  @param <K>       the type parameter
  @param <V>       the type parameter
  @param map       The map to sort
  @param ascending True if in ascending (natural) order, False if in descending order
  @return A <code>List</code> of <code>Entry</code> containing the map entries in sorted order.