I am writing an EditorWindow Script and when I populate an empty list with values they are sometimes out of order as the picture shown below. When I debug, the list populates like that. There is no code on my side that would be doing this. Anyone have clue? If it helps, I have the list of these sprites
I talked to a few other developers and found out that I had assumed that Selection.objects which is what Unity is using underneath was going to be in order from which it was selected. That is not the case.