            <div class="not-examples">
                    <code class="code">stableSortBy xs cmp</code>
<p>

    Sort xs in place using comparator <code class="code">cmp</code>, the stable means if the elements
    are equal, their order will be preserved<br>
 
                    </div>
                    
                    </div>

                  
<pre><span id="VALstableSortByU"><span class="keyword">val</span> stableSortByU</span> : <code class="type">'a array -> ('a -> 'a -> int [@bs]) -> 'a arra