Easiest way to reorder items in a List?

I have a list of game objects and I want to change the order of the list. The game objects have a number variable and I’d like to arrange them so they are in order. Is there a built in numerical sort method for lists that I could use for this? Or should I just pre-sort them while first populating the list?


I was eventually able to get this to work with Array.Sort and a custom sorter interface. Found some info that helped here if anyone else has the issue.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms