Logs are not sorted by id, regarding #607.