Skip to content

Commit

Permalink
fixed typo in BarChartModule line 100
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciaBaldassini committed Oct 23, 2019
1 parent 8e5b361 commit af46c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/visualization/templates/js/BarChartModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ var BarChartModule = function(fields, canvas_width, canvas_height, sorting, sort
if(sorting != "none"){
if(sorting == "ascending"){
data.sort((a, b) => b[sortingKey] - a[sortingKey]);
} else if (sorting == "decending") {
} else if (sorting == "descending") {
data.sort((a, b) => a[sortingKey] - b[sortingKey]);
}
}
Expand Down

0 comments on commit af46c9f

Please sign in to comment.