I have an ArrayList of ArrayList of String.
In Outer ArrayList on each index each Inner ArrayList has four items have four parameters.
- Contacts Id
- Contacts Name
- Contacts Adress
- Contacts Number
Now I want to sort the complete ArrayList of the on the basis of Contact Name Parameter.
Means I want to access the outer Arraylist and the inner ArrayList present on each index of outer Arraylist should be sorted according to contact Name.
Comparator / Comparable Interfaces not likely to help me.
Collection.sort can't help me
Sorting Arraylist of Arraylist of Bean. I have read this post but it is for ArrayList
of ArrayList<Object>
. How to figure out this problem?