just added .toLowerCase() for more accurate ordering of attendees

This commit is contained in:
agk512 2013-12-09 03:50:21 -05:00
parent b558d94fdd
commit 83abdf4fd0

View File

@ -62,8 +62,8 @@ public class Search extends MenuActivity {
Collections.sort(rsvpList, new Comparator<Attendee>() { Collections.sort(rsvpList, new Comparator<Attendee>() {
@Override @Override
public int compare(Attendee a1, Attendee a2) { public int compare(Attendee a1, Attendee a2) {
String compareName = a1.getLastName(); String compareName = a1.getLastName().toLowerCase();
String thisName = a2.getLastName(); String thisName = a2.getLastName().toLowerCase;
return compareName.compareTo(thisName); return compareName.compareTo(thisName);
} }
}); });
@ -83,4 +83,4 @@ public class Search extends MenuActivity {
} }
} }
} }