Ordenar matrices por First Element Java

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