Hi i need to sort array two Dimension in java but i need the sorting to be by index inside my array my array is
String arr[][]={ {"joun","1525565","10"},
{"ALI","15256562","100"},
{"FATEH","1525534","20"} };
I need to sort my array by index number two and the output is
String arr[][]={ {"ALI","15256562","100"},
{"FATEH","1525534","20"},
{"joun","1525565","10"} };
my order must be 100 then 20 then 10
i tried to put this code in java put the problem the program get confused from the index 1 and two i used inside for loop Arrays.sort(arr[i])
Arrays.sortin Java 8