Sort Sankey Diagram order-


Sort Sankey Diagram order-

Hey everyone,

I've created some Sankey Diagrams in Aster, and I am trying to find out if there is any way to sort the order of the boxes on each side. Currently, they show up according to alphabetic order of the string text. What I think would be more beneficial in my use case would be sorting it by the # of occurences, descending. That way, a user can quickly see what button/product has been selected most frequently.

I've tried ordering by cnt desc in my nPath function, but that doesn't affect the order within the visualization at all.

Let me know if you have any ideas or have done anything that would work in this scenario. Thanks!