localeCompare() platform support
<p>I want to sort an array of French, German, Polish, Chinese etc. words in javascript.</p>

<p>Therefore I use the localeCompare() method as described here: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare</a></p>

<p>In this pen you can see the french example: <a href="http://codepen.io/anon/pen/wWWYoy?editors=1111" rel="nofollow noreferrer">http://codepen.io/anon/pen/wWWYoy?editors=1111</a></p>

<p>Left side is the ordering it should be - right side the order the browser generates.</p>

<p>Same example with german letters: <a href="http://codepen.io/anon/pen/ezzPWa" rel="nofollow noreferrer">http://codepen.io/anon/pen/ezzPWa</a></p>

<pre><code>function frsort(a, b) {
  return a.localeCompare(b);
}
</code></pre>

<p>I'm simply using localeCompare without locales or options arguments, since those are supported by very few browsers (<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare</a>)</p>

<p>However developers.mozilla.org reads: </p>

<blockquote>
  <p>Android - Basic support (Yes)</p>
</blockquote>

<p>Even though on Android 4.0.4 using the Android browser sorting is done all wrong. Chrome on Android 4.0.4 sorts the right way.</p>

<p><a href="https://i.stack.imgur.com/yhbms.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yhbms.jpg" alt="enter image description here"></a></p>

<p>Is there any mistake in my code, or any explanation why Stock Android browser is doing the sorting wrong?</p>