Added ordering to plot data