Ensure consistent ordering of blocks in MPI