Comparator Class.