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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 20 Mar 2007 15:36:16 -0000


albertel		Tue Mar 20 11:36:16 2007 EDT

  Modified files:              
    /loncom/interface	portfolio.pm loncommon.pm 
  Log:
  - new alldomains isn't sorted by default
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.177 loncom/interface/portfolio.pm:1.178
--- loncom/interface/portfolio.pm:1.177	Fri Mar  2 20:33:21 2007
+++ loncom/interface/portfolio.pm	Tue Mar 20 11:36:14 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # portfolio browser
 #
-# $Id: portfolio.pm,v 1.177 2007/03/03 01:33:21 albertel Exp $
+# $Id: portfolio.pm,v 1.178 2007/03/20 15:36:14 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1347,7 +1347,7 @@
                       '</th>');
             $colspan ++;
         } elsif ($type eq 'domains') {
-            @all_doms = &Apache::lonnet::all_domains();
+            @all_doms = sort(&Apache::lonnet::all_domains());
         }
         $r->print(&Apache::loncommon::end_data_table_header_row());
         foreach my $key (@{$items}) {
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.515 loncom/interface/loncommon.pm:1.516
--- loncom/interface/loncommon.pm:1.515	Wed Mar 14 22:51:23 2007
+++ loncom/interface/loncommon.pm	Tue Mar 20 11:36:14 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.515 2007/03/15 02:51:23 albertel Exp $
+# $Id: loncommon.pm,v 1.516 2007/03/20 15:36:14 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1435,7 +1435,7 @@
 #-------------------------------------------
 sub select_dom_form {
     my ($defdom,$name,$includeempty) = @_;
-    my @domains = &Apache::lonnet::all_domains();
+    my @domains = sort(&Apache::lonnet::all_domains());
     if ($includeempty) { @domains=('',@domains); }
     my $selectdomain = "<select name=\"$name\" size=\"1\">\n";
     foreach my $dom (@domains) {