y</code></pre>
<pre><span id="VALstableSortBy"><span class="keyword">val</span> stableSortBy</span> : <code class="type">'a array -> ('a -> 'a -> int) -> 'a array</code></pre><div class="info ">
                    <div class="not-examples">
                    <code class="code">stableSort xs cmp</code><br>
<div class="tag"> <b>Returns</b> a fresh array
<p>

    The same as <a href="Belt_SortArray.html#VALstableSortInPlaceBy"><code class="code">Belt_SortArray.stableSortInPlaceBy</code></a> except that <cod