I believe that when the stack units option is on, the ship with the most damage is moved to the top of the unit stack (so you can see how bad your unit is damaged). Thats not a solution to your problem, but I wasn't sure if you knew what was going on and why they might seem to jump around a bit (actually, im not sure when the switching occurs, i've just noticed that the one showing has the most damage).
As for solutions, well, everyone was telling me to basically create more fleets. so, make 1 fleet that just has your capitals, 1 fleet that has just your guardians, 1 fleet thats all your illuminators, etc. turn unit stacking off. You still probably want to move all your ships at once to 1 location, so make sure you select all those fleets at once and save it to a number (dont forget to set combined move). When adding replacements, it might get a little micro crazy because the ships might not join the intended fleet (probably the capital fleet), but you could easily select your guardian fleet and micro them that way.
btw, for anyone who just drops into this post and might get confused:
the original post was about where a unit appears on the empire tree. if you maximize a fleet icon that appears on your empire tree, then click the icon (to select all the ships), 1 ship's abilities appear on the UI at the bottom. There are various ways to pick a different ship so as to use different abilities, but the question was about changing the default.
the new question is about unit stacking, which can be turned on/off, and cycling (using the tab key).