It doesn't really matter but I think technically it should be ph, sanitizer, then shock. However, depending upon how old and bad the water is, you're better off just draining and refilling. Probably should also do a system purge with Ahh-some or Serum total cleanse (same thing, different label) and a healthy dose of chlorine prior to draining.