Sorting Chart Legends

Using Birt 4.2 I struggled with finding a solution to sorting the legend of a stacked bar chart in Birt. After much googling it seems I saw there was a lot of comments on custom/script answers, which I am sure is need in some circumstances. I wanted to share how I finally figured out how to do it. There is the chart with the legend sorted top to bottom. Originally by default it is sorted in the opposite direction, bottom to top. Under the Select Data tab where the Optional Y Series Grouping is used to create the stacked bar, click on the icon to the right (see image) which will go to the sorting option. Sort the grouping in a Descending Mode or whichever mode works for your chart legend. Then choose the element that is being displayed to Sort On . I hope this helps some and somehow gets out.