diff --git a/.eslintrc b/.eslintrc index 1d6e0d5..ea764bf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,7 @@ { "env": { - "browser": true + "browser": true, + "es6": true }, "extends": "eslint:recommended", "parserOptions": { diff --git a/band-plan.html b/band-plan.html index e24326b..42d5162 100644 --- a/band-plan.html +++ b/band-plan.html @@ -162,7 +162,7 @@ div#togglebuttons>button { autoColumnsDefinitions: function(definitions){ definitions.forEach((column) => { if (column.field == "band") { - column.sorter = function(a, b, aRow, bRow, column, dir, sorterParams) { + column.sorter = function(a, b) { return parseFloat(new Measures().from(a).to('m')) - parseFloat(new Measures().from(b).to('m')); } }