--- loncom/interface/lonstatistics.pm 2002/09/16 20:09:46 1.51 +++ loncom/interface/lonstatistics.pm 2002/11/18 20:39:46 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # (Publication Handler # -# $Id: lonstatistics.pm,v 1.51 2002/09/16 20:09:46 www Exp $ +# $Id: lonstatistics.pm,v 1.54 2002/11/18 20:39:46 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -245,9 +245,11 @@ sub SortStudents { my $sortBy = ''; if(defined($cache->{'sort'})) { $sortBy = ':'.$cache->{'sort'}; + } else { + $sortBy = ':fullname'; } - my @order = sort { $cache->{$a.$sortBy} cmp $cache->{$b.$sortBy} || - $cache->{$a.':fullname'} cmp $cache->{$b.':fullname'} } + my @order = sort { lc($cache->{$a.$sortBy}) cmp lc($cache->{$b.$sortBy}) || + lc($cache->{$a.':fullname'}) cmp lc($cache->{$b.':fullname'}) } @sorted1Students; return \@order; @@ -509,7 +511,8 @@ sub BuildStatistics { 'updateTime'); my @headings=('Full Name', 'Section', 'PID', 'Domain', 'User Name', 'Last Updated'); - my $spacing = ' '; + my $spacing = ' '; + my %reports = ('classlist' => 'Class list', 'problem_statistics' => 'Problem Statistics', 'student_assessment' => 'Student Assessment',