I have an ArrayList
of custom Java
users that I need to sort. An User is simply a user in the system. However the user has many attributes. To create the initial list, these are the calls necessary:
ArrayList<Identity> contractors = (ArrayList<Identity>) resource.searchUsers(null, null, null, null, null, null, null, null, "Contractor", "active");
The object resource
is also a custom Java class with the necessary database calls to return the array list of contractors.
My question is how would I go about sorting an array list of complicated items such as this with many different attributes?