From 83abdf4fd0372ca4dc824fdb7a1ff7e44616a68c Mon Sep 17 00:00:00 2001 From: agk512 Date: Mon, 9 Dec 2013 03:50:21 -0500 Subject: [PATCH] just added .toLowerCase() for more accurate ordering of attendees --- src/com/uncc/gameday/activities/Search.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/uncc/gameday/activities/Search.java b/src/com/uncc/gameday/activities/Search.java index c32740f..4ef2011 100644 --- a/src/com/uncc/gameday/activities/Search.java +++ b/src/com/uncc/gameday/activities/Search.java @@ -62,8 +62,8 @@ public class Search extends MenuActivity { Collections.sort(rsvpList, new Comparator() { @Override public int compare(Attendee a1, Attendee a2) { - String compareName = a1.getLastName(); - String thisName = a2.getLastName(); + String compareName = a1.getLastName().toLowerCase(); + String thisName = a2.getLastName().toLowerCase; return compareName.compareTo(thisName); } }); @@ -83,4 +83,4 @@ public class Search extends MenuActivity { } } -} \ No newline at end of file +}