Fix compactFixupPointers integer overflow (#16992)
Fixes the implicit conversion in the sort ordering which overflowed with large pointers.
Edited by Ömer Sinan Ağacan
Fixes the implicit conversion in the sort ordering which overflowed with large pointers.