Skip to content

Commit

Permalink
Reverse sort
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Jan 3, 2024
1 parent 0688f27 commit 5211a76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/data/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export async function buildProfessorProfiles(payload: ShowCourseTabPayload) {
: rmps[i]?.wouldTakeAgainPercent
: undefined,
rmpTags: rmps[i]?.teacherRatingTags
.sort((a, b) => a.tagCount - b.tagCount)
.sort((a, b) => b.tagCount - a.tagCount)
.map((tag) => tag.tagName),
gradeDistribution: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProfessorProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ProfessorProfile = () => {
{' '}
{/* RMP Tag area */}
{professorData.rmpTags
?.slice(0, 4)
?.slice(0, 5)
.map((item: string, index: number) => (
<RmpTag key={index} text={item.toUpperCase()} />
))}
Expand Down

0 comments on commit 5211a76

Please sign in to comment.