fix(manipulation): reverse dom order during replace