overriding the sankey sorting and depth algorithm