Move graph point sorting from javascript to python app
This fixes a bug where referencing points in the 'dataset' within plotter.js gives you something incorrect since the actual points used in the graph are sorted in a new object that is not 'dataset'. In this case, sorting the data from python insures that plotter.js is given a sorted dataset from the start.