Need help with array's

Hello everyone.

I am doing some experiments with array’s (since i am not an ace programmer)

I have made an array out of gameObjects with the code

public GameObject[]arrayOfGameObjects; 
arrayOfGameObjects = GameObject.FindGameObjectsWithTag("Brokje");

This will fill the arrayOfGameObjects with all the G-objects named “Brokje”:
However. it does this in a seemingly random way.
for example it is not following the stacklist in unity (the order in unity interface)
and since they all have the same name, this also doens’t determine the order.

So here is my question.
Is there a way so i can dictate/control which objects are added to the array first?

Thanks in advance

III

Well i continued experimenting. Right now i am making a list a dictionary and an array.

I renamed all the objects that are tagged “brokje”
Then i make the array which i sort.
then i fill the dictionary with the array
and the list also.

Then i use the list to call the values from the dictionary.

So far it seems to work, however i still have some problems with an for loop.

when an object is found i want to remove it from the list. however when i do that the loop will select input 1,3,5 and 7

if i don’t remove the objects then it will just follow 1,2,3,4,5,6,7.

anybody any idea?

Thanks in advance