Initial work on sorting data table in timeseries.