Re-ordering bar chart based on ascending values

I am trying to create a grouped bar chart with the bars ordered based on ascending y values. Can anyone help me with this?