Sorting 1 List, Synching Another: Help

Hi, I have a 10x10 2D array, as int. In this 2D array, I create ascending values at any position in the 2Darray. So when the array is compiled, my values of 1,2,3,4, may be compiled in the order of 4,2,1,3… etc…

My issue is that not only can I get the values of these positions but the positions of the values. So, in turn each value is an order (or index number), and a Vector2 position.

As such, I want to arrange the order of the values, compiled, in ascending order… the issue for me is, keeping the positions of the values, in synch.

At the moment, I am keeping a list, for the values, which I can sort the order of… but how do I insure the order of the positions, list, matches?

Thanks

Encapsulate all that data into its own class and maintain 1 list of that class.

1 Like

Thats just what I have done.
Thanks!