mts_arrange function

Order mts time series by metadata values