add ordering on timestamp to datapoints