Ensure node IDs are processed in order.