--- loncom/interface/lonselstudent.pm 2007/11/01 19:56:39 1.10 +++ loncom/interface/lonselstudent.pm 2008/06/06 19:12:59 1.12 @@ -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.12 2008/06/06 19:12:59 bisitz 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); @@ -332,7 +331,7 @@ SCRIPT $result .= ''."\n"; } $result .= ''; - $result .= ''; $result .= '