@SuppressWarnings("unchecked")
	@Override
	public int compare(Object arg1, Object arg2) {
		if( !map.containsKey(arg1) || !map.containsKey(arg2) ) { return 0; }

		Comparable value1 = (Comparable) map.get(arg1);
		Comparable value2 = (Comparable) map.get(arg2);
		return order * value1.compareTo(value2);
	}