in_memory: fix tie-breaking when two visits have the same date.
swh-loader-core's tests depend on this behavior.