I would use the Linq subset to order them by their position
//this goes with the using statements
using System.Linq;
//get all the GO's
//then order them by the x position
foreach(GameObject go in GameObject.FindGameObjectsWithTag("YOUR_TAG_HERE")
.OrderBy(x => x.transform.position.x);
Trending Articles
More Pages to Explore .....