--- loncom/interface/lonselstudent.pm 2007/11/01 19:56:39 1.10 +++ loncom/interface/lonselstudent.pm 2007/11/01 20:04:17 1.11 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # lonselstudent.pm : Reusable subs for student selection. # -# $Id: lonselstudent.pm,v 1.10 2007/11/01 19:56:39 albertel Exp $ +# $Id: lonselstudent.pm,v 1.11 2007/11/01 20:04:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -111,9 +111,8 @@ sub get_people_in_class { my $classlist = &Apache::loncoursedata::get_classlist(); my @keys = keys(%{$classlist}); - # Sort by: Section, name + # Sort by: fullname, username @keys = sort { - lc($classlist->{$a}[$section]) cmp lc($classlist->{$b}[$section]) || lc($classlist->{$a}[$fullname]) cmp lc($classlist->{$b}[$fullname]) || lc($a) cmp lc($b) } (@keys);