fix _.sortedIndex for large indexes

fixes #1850
Merge pull request #1954 from deiwin/fix-sorted-index

fix _.sortedIndex for large indexes