boon/src/main/java/org/boon/sort/Sorting.java
public static <K, V> Collection<Map.Entry<K, V>>  sortValues( Class<V> componentType, Map<K, V> map,
                                                                   String sortBy, boolean ascending, boolean nullsFirst ) {

        return sort ((Class) componentType, (Collection) map.values() , sortBy, ascending, nullsFirst);

    }
public static <K, V> Collection<Map.Entry<K, V>>  sortValues( Class<V> componentType, Map<K, V> map,
                                                                   String sortBy, boolean ascending, boolean nullsFirst ) {

        return sort ((Class) componentType, (Collection) map.values() , sortBy, ascending, nullsFirst);

    }
public static < K , V > Collection < Map . Entry < K , V > > sortValues ( Class < V > componentType , Map < K , V > map , String sortBy , boolean ascending , boolean nullsFirst ) { return sort ( ( Class ) componentType , ( Collection ) map . values ( ) , sortBy , ascending , nullsFirst ) ; }
Sort map values.
@param map  the map entries you want to sort
@param sortBy what you want to sort the list by
@param ascending do you want ascending order
@param nullsFirst do you want nulls first
Sort map values .