You are correct that adding them out of order will break functionality. However, with components, history has to be added using two different ko subscriptions (beforechange for undo and change (the default) for redo).