="dart-core/Comparator.html">Comparator</a> that compares one comparable to another.</p>
<p>It returns the result of <code>a.compareTo(b)</code>.</p>
<p>This utility function is used as the default comparator
for ordering collections, for example in the <a href="dart-core/List-class.html">List</a> sort function.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static int compa