diff --git a/src/data/builder.ts b/src/data/builder.ts index 6913885..f34d9df 100644 --- a/src/data/builder.ts +++ b/src/data/builder.ts @@ -85,7 +85,7 @@ export async function buildProfessorProfile( ? rmp?.wouldTakeAgainPercent : undefined, rmpTags: rmp?.teacherRatingTags - .sort((a, b) => a.tagCount - b.tagCount) + .sort((a, b) => b.tagCount - a.tagCount) .map((tag) => tag.tagName), gradeDistribution: [ { diff --git a/src/pages/ProfessorProfile.tsx b/src/pages/ProfessorProfile.tsx index 76f61f7..c3466ba 100644 --- a/src/pages/ProfessorProfile.tsx +++ b/src/pages/ProfessorProfile.tsx @@ -43,7 +43,7 @@ export const ProfessorProfile = () => { {' '} {/* RMP Tag area */} {professorData.rmpTags - ?.slice(0, 4) + ?.slice(0, 5) .map((item: string, index: number) => ( ))}