ljs-string">'e'</span>, <span class="hljs-string">'z'</span>, <span class="hljs-string">'è'</span>, <span class="hljs-string">'a'</span>, <span class="hljs-string">'ä'</span>]

array.sort() <span class="hljs-comment">// returns ['a', 'e', 'z', 'ä', 'è', 'é']</span>
array.sort(hx.sort.localeCompare()) <span class="hljs-comment">// returns ['a', 'ä', 'e', 'é', 'è', 'z']</span>

array.sort(hx.sort.localeCompare(<span class="hljs-string">'de'</span>)) <span class="hljs-comment">// returns ['a', 'ä', 'e