Prehung Door Before Or After Finished Floor

Which project goest first.
Prehung door before or after finished floor. On a professional job all the doors are hung first then cased. Door first means the trimwork can be more complete while the crew is set up onsite. Set the hinge side of doors 1 2 off floor to tuck in carpet. The last thing i want is the flooring crew to undercut my jambs remove the doors from their hinges and risk dmaging them or adding an unexpected bump in the flooring which takes me coming back to pull the door.
This is for timing. Wheni install prehung doors the jambs and door are crefully fitted to the final rough opening which includes the finished floor. Just be sure to allow for a threshold or thick carpeting before making these cuts. So i need to buy new prehung interior doors.
Most builders leave the floors for last. Before the floors go in you can easily shim one end of the jamb to get the door exactly plumb. Adjust the gap around the door and let the other side jam. You can rent a saw that is special made for cutting door casings to allow tyle to go under.
I set the prehung unit and then remove the door until after carpet. The floors go in last. This clearance is set by trimming the ends of the hinge and latch jambs. Best method for carpeted floors where minor variations won t show.
After floors this would be a huge pain to do since you would need to pull the door out and saw the jamb. It also assures that the doors on hand are correct and will work. I removed old wood walls and putt in new drywall and so now the door frame is off balance with the wall. By having all the doors and trim up first the painters can come in and spray everything out and get the first coat of color on the walls.
Baseboard goes down then the 2nd coat of paint goes on. Im only asking because if. You should hang all doors and trim after dry wall. The clearance between the bottom of the door and the finish floor should be 3 8 inch or less.
I am gutting out the house and one project leads to another. But i also have to tile the floor. After floors are in fenish with quarter round shoe molding. Also maybe others are more careful but i found it s hard not to ding the floor a little bit when doing doors afterwards.
There will almost certainly be trimming involved for other floors on the jamb and possibly the door too. Then the flooring installers come in and do their thing.