This is a tough question to answer; there are a lot of variables involved. Suffice it to say, my biggest recommendation is to install the O/S, whose boot loader is the one you want to be primary, last.
For the Windows O/Ss, the problem is that some of these O/Ss (Windows 8, 8.1 and 10) support a feature called Secure Boot and their boot loader *must* be primary to ensure that this feature works (if indeed you care about this). Thus, for the case of wanting to have WinXP, Win7 and Win10 all be bootable, I would install them in that order.
All of this said, I would never actually do it. Because of the situation with WinXP (i.e. out of support and thus insecure and without drivers for many new hardware features), I would want to run it in a virtual environment where the insecurity can be isolated and the virtualization removes hardware compatibility as an issue. Windows XP Mode on Windows 7 is a great way to handle this.
...S