Merge pull request #11904 from mtaner/fix/project-ordering
Reorder projects and challenges from newest to oldest
This commit is contained in:
@ -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() : []
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user