Debugging distributed sort implementation