order related records by time