diff --git a/client/src/modules/Course/Components/PreviewReviewCard.tsx b/client/src/modules/Course/Components/PreviewReviewCard.tsx index b651ef81..2a0f4508 100644 --- a/client/src/modules/Course/Components/PreviewReviewCard.tsx +++ b/client/src/modules/Course/Components/PreviewReviewCard.tsx @@ -102,7 +102,7 @@ export default function PreviewReviewCard({ // list of professors (name1, name2, ..) let professornames = ''; if (_review.professors && _review.professors.length > 0) - professornames += _review.professors.join(', '); + professornames += _review.professors.sort().join(', '); else professornames += 'Not Listed'; if (isProfile) { diff --git a/client/src/modules/Course/Components/ReviewCard.tsx b/client/src/modules/Course/Components/ReviewCard.tsx index c8e976ee..536f7549 100644 --- a/client/src/modules/Course/Components/ReviewCard.tsx +++ b/client/src/modules/Course/Components/ReviewCard.tsx @@ -114,7 +114,7 @@ export default function ReviewCard({ // list of professors (name1, name2, ..) let professornames = ''; if (_review.professors && _review.professors.length > 0) - professornames += _review.professors.join(', '); + professornames += _review.professors.sort().join(', '); else professornames += 'N/A'; if (isProfile) {