3.1.5.2.4 Delta Execution

Once the new ordering of deltas has been determined it is necessary to undo and execute deltas to achieve a logically consistent ordering. The old ordering in the delta log and the new ordering MUST be compared to determine the point of divergence: the first position in the orderings that is not the same in both orderings. The deltas, starting with the last delta in the old ordering and proceeding in reverse order until the point of divergence, MUST be undone. Then the deltas in the new ordering, starting at the point of divergence and proceeding until the end, MUST be executed. The delta log MUST be replaced with the new ordering.