Returns the order that a set of elements should be recreated in to ensure that the resulting elements are put back in the right order, with all their attachments intact. Essentially, the order in which any order before, parent re-ordering and attachment operation will be performed after the corresponding element has been created.
(element_ids: Vec<ElementId>, wrapper_for_element: &impl Fn(ElementId) -> Option<ElementWrapper>)