orderMappedEdge function

Order the columns of mapped.edge to match across trees