Reordered the legend