Sorting a bar chart by values

I was wondering if it is possible to sort a bar chart by a single category when it is displaying values for 2 or more different categories? When you select "sort bars by value" and there is more than one category, how is the sorting done? Is it an average of the values?

(1) Answer