The PPL must be completed before starting the ATPL exams.
The ATPL exams must be completed before staring the CPL/IR flying.
The CPL and IR can be done in any order you choose.
You can commence hour building any time after completing the PPL, but you must complete the required number of hours before the CPL or IR flight tests.