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

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

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

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

    }
Sort map entries.
@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