[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Wed, 13 Jun 2007 23:44:12 -0000


albertel		Wed Jun 13 19:44:12 2007 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - sort the items to be uploaded 
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.275 loncom/interface/londocs.pm:1.276
--- loncom/interface/londocs.pm:1.275	Mon Jun 11 17:27:23 2007
+++ loncom/interface/londocs.pm	Wed Jun 13 19:44:10 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.275 2007/06/11 21:27:23 albertel Exp $
+# $Id: londocs.pm,v 1.276 2007/06/13 23:44:10 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1583,7 +1583,7 @@
 	&Apache::loncommon::start_data_table();
 
     my $num = 0;
-    foreach my $embed_file (keys(%{$allfiles})) {
+    foreach my $embed_file (sort {lc($a) cmp lc($b)} keys(%{$allfiles})) {
 	$upload_output .= &Apache::loncommon::start_data_table_row().
 	    '<td>'.$embed_file.'</td><td>';
 	if ($args->{'ignore_remote_references'}