Changed stacked-bar sorting