Order-aware patch implementation