A fork of underscore/lodash.sortedIndex to use a comparison function instead of a ranking function.