timeseries.io.cache: bug fix for empty list sort