public static <A, B extends Comparable<B>> void sort(final List<A> list, final Map<A, B> sortBy) {
		Collections.sort(list, new Comparator<A>() {
			public int compare(A o1, A o2) {
				return sortBy.get(o1).compareTo(sortBy.get(o2));
			}
		});
	}