Fixed challenge ordering
This commit is contained in:
@ -192,6 +192,15 @@ module.exports = {
|
|||||||
|
|
||||||
allBonfireIds: function() {
|
allBonfireIds: function() {
|
||||||
return bonfires.map(function(elem) {
|
return bonfires.map(function(elem) {
|
||||||
|
return {
|
||||||
|
_id: elem._id,
|
||||||
|
difficulty: elem.difficulty
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.sort(function(a, b) {
|
||||||
|
return a.difficulty - b.difficulty;
|
||||||
|
})
|
||||||
|
.map(function(elem) {
|
||||||
return elem._id;
|
return elem._id;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user