fix: handle reordered sources in indexed merge insert (#8509)