path energy values are now sorted in plot