Reordered the list of the input so that the data will always be read in
accending order. 

Working on reading the data from the generator as a datafram so I can
plot it.