compare

Compare two wrapped values for ordering.

Return

-1 if x.value < y.value, 0 if x.value == y.value, or 1 if x.value > y.value.

Parameters

x

First object for comparison.

y

Second object for comparison.