pre id="VALsort">val sort : ('a -&gt; 'a -&gt; int) -&gt; 'a list -&gt; 'a list</pre><div class="info ">
<div class="info-desc">
<p>Sort a list in increasing order according to a comparison
   function. The comparison function must return 0 if its arguments
   compare as equal, a positive integer if the first is greater,
   and a negative integer if the first is smaller (see Array.sort for
   a complete specification). For example,
   <a href="Stdlib.html#VALcompare"><code class="code">compare</code></a> is