Handle it like null means infinitely far away. Thus:
comp(1234, null) == -1comp(null, null) == 0comp(null, 1234) == 1
With this, you get a consistent ordering.
Handle it like null means infinitely far away. Thus:
comp(1234, null) == -1comp(null, null) == 0comp(null, 1234) == 1With this, you get a consistent ordering.