code: public static <T extends Comparable<? super T>>  void sort(T[] arr, int[] brr) {
          sort(arr, brr, arr.length);
      }
docs: Besides sorting the array arr, the array brr will be also
  rearranged as the same order of arr.