Is there a priority list for move effects and weather effects?
For example, picture the following totally possible event that just happened but I forgot to save a log. ;)
A Sandstorm is raging, and both sides of the field have full hazards down. P1 has a Crobat on the field. It's holding a Life Orb, and it's had both Ingrain and Aqua Ring Baton Passed to it. It's also been Leech Seeded.
P2 dry switches in his Sharpedo. It's holding Leftovers and it has Rough Skin. P1 attacks the incoming Sharpedo with Leech Life.
For the sake of clarification, Crobat is faster than Sharpedo.
Now, I know all the following are going to happen:
Sharpedo will take Stealth Rock and Spikes damage, and is going to get badly poisoned. Crobat is going to hit Sharpedo with Leech Life. Leech Life is going to steal HP. Rough Skin will hit Crobat. Life Orb will hurt Crobat. Sandstorm's going to hit them both. Leftovers will heal Sharpedo, toxic poison will hurt him, and Crobat will get some healing from Aqua Ring and Ingrain, and Leech Seed hurt Crobat and will give some health to Sharpedo.
My question is, what is the order for all this stuff?