Skip to content

Commit

Permalink
Fix bug when people view sets from the course (i.e., existing hw sets).
Browse files Browse the repository at this point in the history
Before, they were sorted by name, this keeps the problems in the order
they appear in the problem set.
  • Loading branch information
jwj61 committed Dec 22, 2014
1 parent 8e446ef commit 80dee76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/WeBWorK/ContentGenerator/Instructor/SetMaker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,8 @@ sub pre_header_initialize {
push @pg_files, $problemRecord->source_file;

}
@pg_files = sortByName(undef,@pg_files);
# Don't sort, leave them in the order they appeared in the set
#@pg_files = sortByName(undef,@pg_files);
@pg_files = map {{'filepath'=> $_, 'morelt'=>0}} @pg_files;
$use_previous_problems=0;
}
Expand Down

0 comments on commit 80dee76

Please sign in to comment.