comparator saving equality result