fixed ordering to comply with sankey requirements