AnsweredAssumed Answered

Collections.sort question

Question asked by smachaje on Aug 4, 2017
Latest reply on Aug 4, 2017 by smachaje

I'm having trouble sorting a list.  I think this used to work, but now the code stops and displays


BbList cmlist = CourseMembershipDbLoader.Default.getInstance().loadByCourseIdAndRole(courseId, CourseMembership.Role.STUDENT,null,true);


GenericFieldComparator<User> familyNameComparator = new GenericFieldComparator<User>(BaseComparator.ASCENDING, "getFamilyName", User.class);

Collections.sort(cmlist, familyNameComparator);


If I comment out Collections.sort line it works, but without the sort.


Let me know!