Sort measurements by their timestamp for cumulative sensors.