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

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

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

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

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