How to change Multi-Dimensional Arrays position???
hello everybody i have Multi Dimensional arrays, and i want to show them as a table,let's say this example:
var a=["sam","ami","koby","shi","naba","cindy"];
var b=[1981,1881,1998,2200,1997,2002];
var x=[a,b];
it's working, and it must be in arrays but, when i write the array's
and i want to change array a order by "sort()" function
i don't know how to change the other arrays so it will match to the new order of the array a.
let's say that "sam" now is a[0] and 1981 is b[0]
and after sort() "same" is a[5] i need 1981 to be b[5]
if sonecan can help i'll appiciate it,
thanks.
var a=["sam","ami","koby","shi","naba","cindy"];
var b=[1981,1881,1998,2200,1997,2002];
var x=[a,b];
it's working, and it must be in arrays but, when i write the array's
and i want to change array a order by "sort()" function
i don't know how to change the other arrays so it will match to the new order of the array a.
let's say that "sam" now is a[0] and 1981 is b[0]
and after sort() "same" is a[5] i need 1981 to be b[5]
if sonecan can help i'll appiciate it,
thanks.
Amir thanks for all.
October 14,