I have two parallel arrays, similar to this:
var array1 = [4, 3, 1, 5, 2];
var array2 = ["four", "three", "one", "five", "two"];
I want to sort the first array, and have the second array follow the same sort as the first. Any advice for a good algorithm would be appreciated.
Rick Quatro