ber based on the priority. It takes into account the character order of text and the numeric order of numbers, as opposed to a standard text sort. <div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font">array = [<span class="hljs-string">'20'</span>,<span class="hljs-string">'1'</span>,<span class="hljs-string">'100'</span>]
array.sort() <span class="hljs-comment">// returns ['1', '100', '20']</span>
array.sort(hx.sort.compare) <span class="hljs-comment">// returns ['1', '20', '