Hello i’ve come with a very simple situation:
I’ve got a List of GameObjects called newia ------ the GameObjects has
for some reason the list is filled with numbers like 10,11,12,20,50 , but later on code I acces this list and just pull and remove some items… giving me a list of gameobjects wich names could be 20,10,50,32…
I need to reorder the list of gameobjects taking their names in incremental way , so index 0 of list always be the inferior value of the list of gameobjects names.
I’ve tryed Using Linq withouth a result like
newia = newia.OrderBy(c => c.gameObject.name).ToList(); // and nothing happens
What i am missing?