Here is the context:
function compare (value1, value2) { if(value1 < value2) { return -1; } else if (value1 > value2) { return 1;
-1 means that value1 is less than value2
-1
value1
value2
0 means that value1 is equal to value2
0
1 means that value1 is greater than value2
1