BUG: searchsorted sorter issue with 32bit platforms (GH8490)

Closes #8490