Fix comparator bug.

Return 0 when equal.