@ElainaTruhart Non-negative doesn't matter, but "increases as the index increases" is indeed what it means. So yes, you should be using the bisection offered by searchsorted.
searchsorted