Reorder projects and challenges from newest to oldest

This commit is contained in:
mtaner
2016-12-03 14:07:54 +00:00
parent d0024f85b6
commit 9797fc0544

View File

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