Code example for Comparator

Methods: compare

0
		return new Comparator<Object>() {
			public int compare(Object o1, Object o2) {
				if(o1 instanceof String && o2 instanceof String) {
					return ((String)o1).compareToIgnoreCase((String)o2);
				} else { 
					return getSuperComparator().compare(o1, o2);
				} 
			} 
		}; 
	} 
 
}