Builds the parent/child tree. Spans whose parent is missing from the list are roots. Children keep the sortSpans order.
Builds the parent/child tree. Spans whose parent is missing from the list are roots. Children keep the sortSpans order.