Raw unchecked comparator code