Fix comparator. Refs #54.