How A Comparator Works