直接Arrays.sort(data, new Comparator<int[]>(){}), 重写compare即可。