Added sorting to stacked-bar