changed SortByAttendance test to sortByAttendance