I have multiple arrays, the values in the arrays need to stay together column by column. I want to quicksort then binary search the first array then display all of the values from the other arrays according to the search on the first array. But if I sort the first array then the values from the other arrays are no longer in the correct place.
(Example, not real data) The unsorted but correct position of the data looks like this.
array1{5,2,3,1,4}
array2{6,9,1,7,8}
array3{2,4,1,5,4}
when the first array is sorted it should look like this.
array1{1,2,3,4,5}
array2{7,9,1,8,6}
array3{5,4,1,4,2}
then if 2 is searched it should display like this.
array1{2}
array2{9}
array3{4}
My arrays are in double[].