I am having a HashMap with Strings as key and Objects as value. How can i sort HashMap by FirstName field inside Objects. Here is the actual HashMap representation HashMap<String, AttendanceData> attendanceDataMap=new HashMap<String, AttendanceData>();
Key of the HashMap will be id of AttendanceData Object
AttendanceData Class look like
public class AttendanceData{
private TakenBy takenBy;
private String id;
private String user_name;
private String first_name;
private String description;
private String last_name;
public AttendanceData(String id, String firstName, String lastName, String takenBy, String description, String userName)
{
this.id=id;
this.first_name=firstName;
this.last_name=lastName;
this.takenBy=takenBy;
this.description=description;
this.user_name=userName;
}