diff --git a/webtools/bugzilla/buglist.cgi b/webtools/bugzilla/buglist.cgi index 8a0ee1875e13..438b673ae0c1 100755 --- a/webtools/bugzilla/buglist.cgi +++ b/webtools/bugzilla/buglist.cgi @@ -1356,7 +1356,7 @@ if ($order) { } # If we are sorting by votes, sort in descending order. - if ($db_order =~ /bugs.votes\s+(asc|desc){0}/i) { + if ($db_order =~ /bugs.votes\s*(asc|desc){0}/i) { $db_order =~ s/bugs.votes/bugs.votes desc/i; }