I've 2 or more array
var Arr1 = [1,1,3,2];
var Arr2 = [a,b,c,d];
The idea is to sort the 1st array, that is the one that is the master one, and I wanna reflect the new sorting on second array, so the results well be
var Arr1 = [1,1,2,3];
var Arr2 = [a,b,d,c];
There is any command to do that in a "quick" way?
.sortmethod. developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…