Compares this attribute with another attribute, returning an integer to indicate their relative order. The comparison is performed using an implicit Ordering for the type of the attributes.
Compares this attribute with another attribute, returning an integer to indicate their relative order. The comparison is performed using an implicit Ordering for the type of the attributes.
Value parameters
other
the other Attribute instance to compare against. It must have an attribute of type T, where T is a supertype of A and has an implicit Ordering available.
Attributes
Returns
an integer indicating the relative order of the two attributes: - a negative integer if this attribute is less than the other attribute, - zero if they are equal, - a positive integer if this attribute is greater than the other attribute.