Sorting function not working in IE 11
<p>I have a very simple sorting function that sorts objects by <code>index</code>:</p>

<pre><code>panoramas.sort((a, b) =&gt; {
  if (a.index &gt; b.index) return 1
})
</code></pre>

<p>Input:</p>

<pre><code>[
  { index: 0 },
  { index: 2 },
  { index: 1 }
]
</code></pre>

<p>Output:</p>

<pre><code>[
  { index: 1 },
  { index: 2 },
  { index: 3 }
]
</code></pre>

<p>The function works in Chrome and Firefox, but not in IE (the array isn't being sorted at all.)</p>

<p>Is there something wrong with my function?</p>