I am working on a function that will sort my list under midterm score grade ascendingly. So I tried the ff codes:
if(score === 'Midterm Score'){
_.each(students, function(elem, index, list){
_.sortBy(students, function(elem){
console.log(elem.midterm_score);
});
});
}
So using the elem.midterm_score it did not sort my list via midterm score as can be seen here.
I expect it to be 90, 80, 70 and so on something like that. Any idea what am I missing? Please help!
