binarySearchComparator

A function used to compare two items while performing a binary search.
Example:
function compareNumbers(a, b) {
    return a - b;
}