Sunderland’s unbeaten start to the League One season came to an end when Portsmouth left the Stadium of Light with three points.