I would recommend buying all at once but that isn't always possible.
Motherboard, RAM, PSU and CPU allows you to check that they all work in an external POST.
Then GPU, as you can add that to your external build.
Then case, storage, aftermarket coolers, case fans etc can be bought last.
If you do do this then make sure to try and keep your components as dust free as possible.