diff options
-rw-r--r-- | globals.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl index 4fe0c2783..721f3bc43 100644 --- a/globals.pl +++ b/globals.pl @@ -1008,7 +1008,8 @@ sub LearnAboutColumns { sub get_legal_field_values { my ($field) = @_; my $dbh = Bugzilla->dbh; - my $result_ref = $dbh->selectcol_arrayref("SELECT value FROM $field"); + my $result_ref = $dbh->selectcol_arrayref( + "SELECT value FROM $field ORDER BY sortkey, value"); return @$result_ref; } |