I always carefully pressure wash the engine and compartment first, and Master Blaster the water out, and then, detail the trunk so I don't have to open it later and have water dripping...
Then, the wheels and tires, any stainless, etc., exhaust pipe extensions, etc... Last, wash the car, Master...