SERVER-10192 Fix comparator return value for equivalent elements