Urutkan array berdasarkan elemen pertama java

Arrays.sort(nameOfMultiDimArray, Comparator.comparingInt(arr -> arr[index]));
18-331 Yakoob