[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 13 Jun 2003 20:50:57 -0000


albertel		Fri Jun 13 16:50:57 2003 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  - sort the parts in some kind of order
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.133 loncom/homework/lonhomework.pm:1.134
--- loncom/homework/lonhomework.pm:1.133	Fri Jun  6 00:22:46 2003
+++ loncom/homework/lonhomework.pm	Fri Jun 13 16:50:57 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.133 2003/06/06 04:22:46 albertel Exp $
+# $Id: lonhomework.pm,v 1.134 2003/06/13 20:50:57 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -417,7 +417,7 @@
     }
     &Apache::lonhtmlcommon::Update_PrgWin($request,\%prog_state,
 					  'Analyzing Results');
-    foreach my $part (keys(%allparts)) {
+    foreach my $part (sort(keys(%allparts))) {
 	if (defined(@{ $overall{$part.'.answer'} })) {
 	    my $num_cols=scalar(@{ $overall{$part.'.answer'}->[0] });
 	    $request->print('<table><tr><td colspan="'.($num_cols+1).'">Part '.$part.'</td></tr>');