 <code class="mendoza-code">b</code> implements <code class="mendoza-code">:compare</code> and <code class="mendoza-code">(:compare b a)</code> is not nil, then return <code class="mendoza-code">(- (:compare a b))</code></li>
  <li>else return <code class="mendoza-code">(cond (&lt; a b) -1 (= a b) 0 1)</code></li></ul><p>Since compare defers to the primitive operators as a last resort, the
polymorphic comparison operators produce a total ordering of Janet types.
</p>
<p>The compare method on an abstract typ