JS sort works in Firefox but not IE - can't work out why
- by Max Williams
I have a line in a javascript function that sort an array of objects based on the order of another array of strings. This is working in firefox but not in IE and i don't know why. Here's what my data looks like going into the sort call. (I'm using an array of three items just to illustrate the point here).
//cherry first then the rest in…