I want to sort a ArrayList of Strings (descending order) which are in the following format : "row,column".
But since I can't find a way to do that, I thought of converting the ArrayList of Strings into ArrayList<ArrayList> and sorting it in descending order.
For e.g.,
the strings : "21,10", "19,25", "32,5" will be converted into an ArrayList<ArrayList> like so: [[32,5],[21,10],[19,25]].
NOTE : I only want to sort in descending order based on the first index of inner ArrayList.