Skip to content

Commit 9469b12

Browse files
committed
MP-119 sort order of emsi skills
1 parent 92a570b commit 9469b12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apps/profiles/src/member-profile/skills/MemberSkillsInfo.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const MemberSkillsInfo: FC<MemberSkillsInfoProps> = (props: MemberSkillsInfoProp
2424

2525
const memberEMSISkills: UserEMSISkill[] = useMemo(
2626
() => (props.profile.emsiSkills || [])
27-
.sort((a, b) => (isVerifiedSkill(a.skillSources) ? -1 : (isVerifiedSkill(b.skillSources) ? 1 : 0))),
27+
.sort((a, b) => (+isVerifiedSkill(b.skillSources))
28+
- (+isVerifiedSkill(a.skillSources)) || a.name.localeCompare(b.name)),
2829
[props.profile.emsiSkills],
2930
)
3031

0 commit comments

Comments
 (0)