One at a time so you can assess the impact. I’d say always start with source first. Get the best table you can afford and build your system round that over time.
Not to short shrift anything, I’d look at what the weakest part of your system is and weigh that against “bang for the buck” improvement to make my decision.
My cycle has gone turntable -> speakers -> preamp -> cart -> speakers -> assess your deck -> repeat and add an amplifier somewhere in there if you have passive speakers