I am sorting an Array with Javascript and it is working fine in Chrome, Firefox, Safari but in IE11 I am getting a syntax error. Anyone know what could be causing this? Here's my sort function:
arr.sort((a, b) => b - a);
Internet Explorer 11 does not support the ES2015 feature Arrow Functions.
Either use the function syntax or incorporate a transpiler such as Babel or TypeScript into your toolchain.
function worked great!