sort other arrays according to first array