sorted logs are returned