You are viewing a single comment's thread. Return to all comments →
-1 = a < b
0 = a == b
1 = a > b
a comparer need to tell you if a number is equal, grater or lower than other number, thats why you have 3 possible outputa
Seems like cookies are disabled on this browser, please enable them to open this website
Sorting: Comparator
You are viewing a single comment's thread. Return to all comments →
-1 = a < b
0 = a == b
1 = a > b
a comparer need to tell you if a number is equal, grater or lower than other number, thats why you have 3 possible outputa