sorted() swapped with reversed() since time entries can exist on the same second.