Add time sorting.