int[][] arrs = {{1,100},{11,22},{1,11},{2,12}}; Arrays.sort(arrs, (a, b)->(a[0]-b[0]));
Above array has been sorted as
{1, 100} {1, 11