Whichever Pokemon that is slower will win. Unless its on a switch in.
Ex. if Mega Rayquaza is in and Groudon switches in and primal reverts,
the weather will go from strong winds to Harshly sunny.
Ex. If Rayquaza mega evolves at the same time groudon primal reverts,
then It will start as Strong winds but will change immeadiatley into Harshly sunny.(implying rayquaza is faster then groudon)