Congrats2u
I don't know if I've correctly understood your question, but I would do in this way:
1. I would create a "for" loop
2. In each iteration I would create the sprite in a given position
3. In each iteration I would put the new UID in the n-th position of the array
When one of the sprite is discovered, I will search for it's position in the array and uncover the next one, knowing the UID.
... but I'm not sure if that is what you need