^^THIS^^ Google "rotor phasing." Regardless of the harness wire colors THERE HAS BEEN a couple of times that the factory "stuff" was out of phase
The distributor generates an AC like wave, two pulses, one positive, and one negative. If the magnetic polarity is wrong it will reverse the order of these pulses, IE place the neg one first instead of the positive or vice versa. This triggers the box at the wrong time, causing the spark to be out of time with the rotor position