If you are talking about creating a system and not planning on gradual, incremental improvements, the answer might be different than someone establishing a strategy to improve the system. Linestages, followed by digital source components, are MUCH more consistent in their sound than speakers and power amps. The difference between extremely good versions of these components and more price competitive models is relatively small as compared to differences in amps and speakers. So, it might make sense to invest a bit heavily in those components with an expectation that they will be good in any system and will be long-term keepers. This would be a strategy for someone planning to make incremental improvements, whereas someone buying a system that will not be changing much would probably be better off spending more on the amp and speakers.
Speakers and amps and the room housing the speakers should be considered somewhat together. There are very big differences in the sound of speakers, and they may have extremely different demands as to room placement and compatibility. Because of such variability in sound, one will tend to make mistakes on choices early on before becoming more certain of one's own preferences and what might work in one's setting. That might argue for not spending so much on speakers early on in the process. The amp should at least roughly match they type of speaker it will be asked to drive in terms of power output and compatibility with the impedance curve of the speaker. For example, a tube amp with high output impedance might not match well with a speaker with a low impedance that also has other related demands.
I personally find certain types of amplifiers to be significantly better sounding than other types (I like low-powered tube amps), so any speaker candidates will have to be compatible with that category of amps. It is MUCH more important to prioritize the right choice of amp than it is to prioritize choice of sources or the linestage-- good choices there will almost always be good with whatever choice is made for amp and speaker.