--- loncom/interface/loncommon.pm 2001/07/26 16:00:24 1.3 +++ loncom/interface/loncommon.pm 2001/07/30 22:24:34 1.4 @@ -23,22 +23,22 @@ sub get_previous_attempt { for ($version=1;$version<=$returnhash{'version'};$version++) { map { $lasthash{$_}=$returnhash{$version.':'.$_}; - } split(/\:/,$returnhash{$version.':keys'}); + } sort(split(/\:/,$returnhash{$version.':keys'})); } $prevattempts=''; map { $prevattempts.=''; - } keys %lasthash; + } sort(keys %lasthash); for ($version=1;$version<=$returnhash{'version'};$version++) { $prevattempts.=''; map { $prevattempts.=''; - } keys %lasthash; + } sort(keys %lasthash); } $prevattempts.=''; map { $prevattempts.=''; - } keys %lasthash; + } sort(keys %lasthash); $prevattempts.='
History'.$_.'
Attempt '.$version.''.$returnhash{$version.':'.$_}.'
Current'.$lasthash{$_}.'
'; } else { $prevattempts='Nothing submitted - no attempts.';