I want to list the categories on my bar chart by ascending/descending order of their values rather than alphabetical order or column order. Is this possible?

For example:

A B
1 aaa 5
2 bbb 3
3 ccc 7
4 ddd 1
5 eee 2

Which gives:

chart1.png

But I want:

chart2.png