--- loncom/interface/lonstatistics.pm	2002/10/22 16:30:34	1.53
+++ 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.53 2002/10/22 16:30:34 minaeibi 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;