Fix ordering on bubbles that have nearly the same configuration.