Stacked bar and sorting

Hi ,
Stacked bar plots seems not work properly if you try to sort your data (lower to higher).
Is this a bug ?

thanks,

Any working example around ???