Sort and deduplicate diagnostics before reporting.
Sort and deduplicate diagnostics before reporting.

PiperOrigin-RevId: 438809196
Change-Id: I22b976898c1b19274d53842719e70591c7096096

google/tsec,google/tsec