We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa36808 commit 3be882eCopy full SHA for 3be882e
src/shared/containers/Profile.jsx
@@ -48,6 +48,20 @@ class ProfileContainer extends React.Component {
48
return <Error404 />;
49
}
50
51
+ if (info && info.tracks && info.tracks.length > 0) {
52
+ const trackRankings = {
53
+ COPILOT: 0,
54
+ DATA_SCIENCE: 1,
55
+ DESIGN: 2,
56
+ DEVELOP: 3,
57
+ };
58
+ info.tracks.sort((track1, track2) => {
59
+ const track1Ranking = trackRankings[track1];
60
+ const track2Ranking = trackRankings[track2];
61
+ return track2Ranking - track1Ranking;
62
+ });
63
+ }
64
+
65
return achievements && info && skills && stats
66
? (
67
<ProfilePage
0 commit comments