My array sorting script works perfectly on Firefox, however, Chrome and IE are giving me an unordered array.
var arr = ["2017-02-17",
"2017-02-17",
"2017-02-16",
"2017-02-15",
"2017-02-16",
"2017-02-15",
"2017-02-14",
"2017-02-16",
"2017-02-17",
"2017-02-17",
"2017-02-13"];
arr.sort(function(a, b) {return a>b;});
console.log(arr);
Could this issue be a bug in Chrome/IE or did I overlook something? It seems unlikely that Chrome and IE, which have different JS engines, would both have the same problem.