I need to put logic of first name sorting in this same compare method.
public int compare(Object aO1, Object aO2){
SearchResultAccount acct1 = (SearchResultAccount) aO1;
String lastName1 = acct1.getLastName();
SearchResultAccount acct2 = (SearchResultAccount) aO2;
String lastName2 = acct2.getLastName();
return lastName1.compareTo(lastName2);
}
It is sorting only by last name and I just want to sort according to first name as well in a same method.