added functionality to plot nodevaluelists sorted ascending or descending by a chosen value