My data has a two-dimensional identifier, name and scenario. What I did here was use about 30 lines of JS to determine the maximum value per unique Name, rank those values, and then inject the rank as a new column. Sort by the rank, and then the value within the rank.
This leads me to wonder. Can you embed a DataTable within a DataTable? The first table would be the Name, MaxValue, and Records. The second table would be the Scenarios within that Name and Value.
Probably a rarer use-case, but maybe more common for discrete axis charts.
But you could see how now within each Name, I could change the shade based on the Scenario value to help User see the shift between groupings.