If you are using a 2x4 wall, then most plumbers will put the waste and vents toward the back.
This gives the front of the studs for the water lines.
The plumbing always goes in first, sorry electritians, you lose!
The wiring can bend and snake around the plumbing. It's not a problem for them.