beginnings of sort-by-time function