S/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare">localeComparepage of the MDN.</a> </div><div class="qm-html-paragraph"><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font">svCompare = hx.sort.localeCompare(<span class="hljs-string">'sv'</span>)
array.sort(svCompare)</code></pre></div> </div><div class="qm-html-paragraph">svCompare in the above example would evaluate to: <div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><