We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a0f21e + fba8dfd commit dd844c7Copy full SHA for dd844c7
lib/WeBWorK/ContentGenerator/Instructor/UserList.pm
@@ -236,9 +236,16 @@ sub pre_header_initialize ($c) {
236
237
# Always have a definite sort order in case the first three sorts don't determine things.
238
$c->{sortedUserIDs} = [
239
- map { $_->user_id }
240
- sort { &$primarySortSub || &$secondarySortSub || &$ternarySortSub || byLastName || byFirstName || byUserID }
241
- grep { $c->{visibleUserIDs}{ $_->user_id } } (values %allUsers)
+ map { $_->user_id }
+ sort {
+ $primarySortSub->()
242
+ || $secondarySortSub->()
243
+ || $ternarySortSub->()
244
+ || byLastName()
245
+ || byFirstName()
246
+ || byUserID()
247
+ }
248
+ grep { $c->{visibleUserIDs}{ $_->user_id } } (values %allUsers)
249
];
250
251
return;
0 commit comments