Hi,
I have an ArrayList containing some Person objects.
The Person class has the following attributes, all of which are of type
String. (A person may have multiple roles.)
p_id
p_name
p_role
p_manager
p_salary
Based on a flag, this ArrayList should be sorted using multiple fields.
That is ,
Can you please explain how the ArrayList can be sorted on multiple attributes.
Many thanks.