An object that states its own natural order through the compareSymbol protocol.
a[compareSymbol](b) returns a negative number when a comes first, a positive number when b
comes first, and zero when they are equal in the order. Natural order uses it only when both
values implement it, and only its sign. Keep the order consistent: if a is before b, then b
is after a, and if a is before b and b before c, then a is before c.
An object that states its own natural order through the
compareSymbolprotocol.a[compareSymbol](b)returns a negative number whenacomes first, a positive number whenbcomes first, and zero when they are equal in the order. Natural order uses it only when both values implement it, and only its sign. Keep the order consistent: ifais beforeb, thenbis aftera, and ifais beforebandbbeforec, thenais beforec.Example