make sure time series are ordered when updating.