Each Exchange has its own rule. But for this type of change, usually the order priority is maintained.