I have two arrays that coincide with each other. One array has the name and the other has a numerical value that goes with the name.
name = [name1, name2, name3]
value = [12,11,17]
So, name1 = 12, name2 = 11, and name3 = 17.
What I want to do is reorder the value array from greatest to least, but also reorder the name array so that the values and names still line up.
name = [name3, name1, name2]
value = [17,12,11]
I cannot find a way to do this. I know how to reorder an array, just not how to mirror the order in a separate array.
Thanks for your help,