');
- for (my $k=0; $k<$lasttitle-1; $k++) {
- my @unsorted = @{$cat_items{$codetitles[$k]}};
- my @items;
- &Apache::courseclassifier::sort_cats($k,\%cat_order,\@codetitles,\@unsorted,\@items);
- my @longitems;
- if (defined($cat_titles{$codetitles[$k]})) {
- foreach my $item (@items) {
- push(@longitems,$cat_titles{$codetitles[$k]}{$item});
- }
- } else {
- @longitems = @items;
- }
- $r->print(''.$codetitles[$k].' '."\n".
- ' |