Merge pull request #11904 from mtaner/fix/project-ordering

Reorder projects and challenges from newest to oldest
This commit is contained in:
mrugesh
2016-12-12 21:49:45 +05:30
committed by GitHub

View File

@ -130,8 +130,8 @@ function buildDisplayChallenges(
.reduce((output, group) => ({ ...output, ...group}), {}) .reduce((output, group) => ({ ...output, ...group}), {})
.map(groups => ({ .map(groups => ({
algorithms: groups.algorithms || [], algorithms: groups.algorithms || [],
projects: groups.projects || [], projects: groups.projects ? groups.projects.reverse() : [],
challenges: groups.challenges || [] challenges: groups.challenges ? groups.challenges.reverse() : []
})); }));
} }