I need to sort a two dimensional arrylist java and get the index of the sorted element. to do this I wrote this code 1. first I make a general class to sort the array element and get the original index of the sorted elements:I need to sort a two dimensional arrylist java