Added test to ensure records are sorted by time.