Is it possible to express ordering relationship between all of the possible instances of a certain class in UML?
<p>Suppose to have the class <code>ComplexNumber</code> with the properties <code>real:Real</code>  and <code>imag:Real</code>.</p>

<p>Is it possible to express in UML that an total ordering relationship exists for all of the instances of the class <code>ComplexNumber</code> where for each a:ComplexNumber, b:ComplexNumber a ≤ b &lt;-> (a.real^2 + a.img^2) ≤ (b.real^2 + b.img^2) ?</p>