fix: sort by nesting depth before initial mirror update

this is still incomplete, but should be enough for most cases
fix: must sometimes chain object to the end of parent of previous object