addedlevel sorting to plot files