Updated the sort.cpp file to facilitate faster scatterplot charting