Skip to content
Snippets Groups Projects
Commit 43399eca authored by Todd Dembrey's avatar Todd Dembrey
Browse files

GH-983: Stabilise the sort order of the listing

parent 54d5ccf8
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,8 @@ class ByRoundListing extends React.Component {
const { isLoading, rounds, submissions } = this.props;
if (isLoading)
return []
return submissions.map(submission => submission.round)
return submissions.sort((a, b) => a.id - b.id )
.map(submission => submission.round)
.filter((round, index, arr) => arr.indexOf(round) === index)
.map((round, i) => ({
display: rounds[parseInt(round)].title,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment