Function Address6.opCmp
Compares two Address6 objects.
If this and that contain the same address, scope IDs are compared.
Parameters
Name | Description |
---|---|
that | Another address. |
Returns
Positive number if this is larger than that, negative - if it is smaller, or 0 if they equal.
Example
assert(address6("::14") > address6("::1"));
assert(address6("::1") < address6("::14"));
assert(address6("::1") == address6("::1"));
assert(address6("fe80::1%1") < address6("fe80::1%2"));
assert(address6("fe80::1%2") > address6("fe80::1%1"));