Underground rough-in comes first
The first plumbing on a new build goes in before there is a building. Sanitary and storm leaders, the water service entry, the sump pit, and an ejector pit if the drawings call for one, all set in trench and bedded before the slab is poured. Residential underground is usually ABS DWV, solvent welded and supported, graded at the 1/4 inch per foot the Ontario Building Code asks for on 3 inch and smaller lines and 1/8 inch per foot on 4 inch mains.
This stage carries more weight than any other because concrete does not negotiate. A closet bend stubbed four inches off the finished wall line is a pencil mark on paper and a jackhammer in real life. We work from the architectural set rather than the marketing floorplan, and we check every fixture location against framing dimensions before it gets buried. On a tight infill lot in the older parts of the city the drawings and the site disagree more often than not. Better to sort that out while it is still a phone call.
Underground gets inspected before it is covered. We stage the work so the inspector sees open trench with the test in place, which means the schedule needs a day of slack in it rather than a same-day booking and a hopeful attitude.