diff --git a/include/class.forms.php b/include/class.forms.php index 6e3e39141d92bae69ddf30149be8c67ec2a16907..6452059a82c0f340192be94dc9587217cc60c52c 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -2719,7 +2719,8 @@ class DepartmentField extends ChoiceField { $active_depts = Dept::objects() ->filter(array('flags__hasbit' => Dept::FLAG_ACTIVE)) - ->values('id', 'name'); + ->values('id', 'name') + ->order_by('name'); $choices = array(); if ($depts = Dept::getDepartments(null, true, Dept::DISPLAY_DISABLED)) {