code>a</code> and <code>b</code> are equal, the result is 0.</p>
<p>This function is only defined if <code>a</code> and <code>b</code> are of the same type.</p>
<p>If that type is a function, the result is unspecified and
<code><a href="./Reflect.html#compareMethods">Reflect.compareMethods</a></code> should be used instead.</p>
<p>For all other types, the result is 0 if <code>a</code> and <code>b</code> are equal. If they
are not equal, the result depends on the type and is negative if:</p><ul><li>Numeric t