Correct order of new gradient, and reversed order of dataset to match timestamp order