Skip to content

Commit 951e507

Browse files
author
David Silva
committed
showing challenges in the correct order in list
1 parent 13b3982 commit 951e507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/challenges/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ChallengesList extends Component {
1010

1111
render() {
1212
const { challenges } = this.props;
13-
13+
challenges.sort((a, b) => parseInt(a.attributes.number, 10) < parseInt(b.attributes.number, 10));
1414
return(
1515
<div>
1616
<TintedHeader title="Challenges" subtitle="These are all the available challenges" />

0 commit comments

Comments
 (0)