In Ocarina of Time, do you do the Spirit Temple first or Shadow?

Current Events

Spirit always seemed like a good final dungeon since that's where you get the best shield and when you fight Ganondorf's 2nd in command Kotake and Koume.
Sig