Is "GameObject.FindAllGameObjectsWithTag" related to the hierachy?

So I need to do similar things to lots of game objects. I have positioned them in the hierarchy in the order i want them to be found with “GameObject.FindAllGameObjectsWithTag”. They just appear to be found randomly. Is there a way I can make sure they are found in a certain order?
eg:
1st GameObject name in hierachy is called test_one
allgo[0].name returns test_one

Thanks for any replies

I don’t know about the order, but IIRC, gameobjects are stored in sections with same tag, so when you call findobjectwithtag it only looks in the section with that tag and skips all other gameobjects with different tag.

You can put the gameobjects in an array/list and iterate that.