What I want to do is have a value, let’s say “Name” and attached to that value is another set of values, say “Score” and “Address”. Now I want to arrange the “Names” by the value “Score”, but I want the other values (“Name”, “Address”, etc.) to stick with that “Score” value such that I may be able to access “Address” in the order that the “Scores” are ranked.
How would I do that?
I’ve reviewed plenty about arrays, sorting, multiple dimension arrays, etc., and I think the solution is right there in front of me, but my brain begins to haze up - am I am overthinking it.
For example: If there is a two dimensional array where the Y dimension is “Names” and the X dimension is “Scores”, and I sort by the X dimension (“Scores”) will the Y dimension (“Names”) move with the X dimension (“Names”)? In other words, if I have a particular Score at position (3,1) and its corresponding Name is at position (3,2), and if I sort and the Score goes to position (4, 1) will the Name attached to that “Score” automatically go to position (4,2)?
Thanks!