If the bar graph "colour stripes" (technical term 🙂 ) come from a Dimension, then the same Sort Expression controls both the legend order and the stripe order.
If the bar graph colour stripes are the result of multiple Expressions, then the order of the Expressions (Promote/Demote) is what controls the order of the stripes.