diff --git a/src/components/pages/AdminStudentForm/_sections/AssignReviewerSection.tsx b/src/components/pages/AdminStudentForm/_sections/AssignReviewerSection.tsx index b43ef0a1..db1355d3 100644 --- a/src/components/pages/AdminStudentForm/_sections/AssignReviewerSection.tsx +++ b/src/components/pages/AdminStudentForm/_sections/AssignReviewerSection.tsx @@ -130,12 +130,14 @@ function AssignReviewerSection({ let data: ComboboxData = []; if (!isLoadingProf) { data = professors - ? professors.map((professor) => ({ - label: professor.department - ? `${professor.name} (${professor.department.name})` - : `${professor.name}`, - value: String(professor.id), - })) + ? professors + .map((professor) => ({ + label: professor.department + ? `${professor.name} (${professor.department.name})` + : `${professor.name}`, + value: String(professor.id), + })) + .sort((a, b) => a.label.localeCompare(b.label)) : []; } setProfessorsSelectData(data);