Hello all maven developers
Actually 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. Please help me how to figure out this problem. I am also trying if I am getting solution I will be adding here.
Please advice. Thank you.
Contacts Id, Name, Address and Number
and have anArrayList
of that class. – Steve Apr 24 at 6:18