Check sorted status before stable_sort. Refs #9244.
Merge branch 'feature/9244_timeseries_sort' into develop