Sort two arrays simultaneously, using the sort order of the values in the first array to determine the sort order for both arrays. @param a the array to sort by @param b the array to re-arrange based on the sort order of the first array.
(int[] a, double[] b)
| 553 | * first array. |
| 554 | */ |
| 555 | public static final void sort(int[] a, double[] b) { |
| 556 | mergesort(a, b, 0, a.length - 1); |
| 557 | } |
| 558 | |
| 559 | /** |
| 560 | * Sort two arrays simultaneously, using the sort order of the values |