--- loncom/interface/loncommon.pm 2007/03/03 01:33:20 1.512 +++ loncom/interface/loncommon.pm 2007/03/20 15:36:14 1.516 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.512 2007/03/03 01:33:20 albertel Exp $ +# $Id: loncommon.pm,v 1.516 2007/03/20 15:36:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1270,7 +1270,7 @@ sub create_text_file { sub domain_select { my ($name,$value,$multiple)=@_; my %domains=map { - $_ => $_.' '.$Apache::lonnet::domaindescription{$_} + $_ => $_.' '. &Apache::lonnet::domain($_,'description') } &Apache::lonnet::all_domains(); if ($multiple) { $domains{''}=&mt('Any domain'); @@ -1435,7 +1435,7 @@ selected"); #------------------------------------------- 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 = "