Properly sort suggestions
This commit is contained in:
parent
cfd25d986c
commit
d7adb27c10
@ -55,7 +55,7 @@ module.exports = React.createClass({
|
||||
var attendeeList = this.getAttendeeList();
|
||||
|
||||
var suggestionIds = Object.keys(this.props.suggestions);
|
||||
suggestionIds.sort();
|
||||
suggestionIds.sort(function(a, b){return parseInt(a, 10) - parseInt(b, 10);});
|
||||
var suggestions = [];
|
||||
for (var i in suggestionIds) {
|
||||
var suggestion = this.props.suggestions[suggestionIds[i]];
|
||||
|
Loading…
Reference in New Issue
Block a user