--- loncom/interface/loncommon.pm 2007/11/06 02:23:49 1.608 +++ loncom/interface/loncommon.pm 2007/11/06 04:39:19 1.609 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.608 2007/11/06 02:23:49 albertel Exp $ +# $Id: loncommon.pm,v 1.609 2007/11/06 04:39:19 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -544,7 +544,7 @@ linked_select_forms returns a string con and html for two \n"; - foreach my $value (sort(keys(%$hashref))) { + my @order = sort(keys(%{$hashref})); + if (ref($menuorder) eq 'ARRAY') { + @order = @{$menuorder}; + } + foreach my $value (@order) { $result.=" \n"; @@ -673,7 +686,12 @@ END $result .= $middletext; $result .= "