title: Differences in JS Array.Sort IE 11 vs Chrome
body: <p>I have a problem with a custom sort function I have written. In Chrome and Firefox the sort is firing properly and my records switch as needed. The issue arises when I run the code in IE 11. Here is my example <a href="https://jsfiddle.net/azb90cgv/8/" rel="nofollow">https://jsfiddle.net/azb90cgv/8/</a></p>
  
  <p>From what it looks like to me is that IE11 is switching the values entered into the sort function.</p>
  
  <p>With dataset [A,B,C,D] Chrome and FF sort with by the combinations (A,B)(B,C)(C,D) for me IE 11 is comparing the items as (B,A)(C,B)(D,C)</p>
  
  <p>This is an issue because my line <code>return 1;</code> isnt flipping my records IE11 is expecting a -1 value.</p>
  
  <p>My goal: I want the data ordered by sequence, and when there is a duplicate switch the original order of the items.
  Am I overlooking something? Why is this running differently?</p>