[NFC][sanitizer] Add SortAndDedup function

GitOrigin-RevId: ababeca34b3f3a355010803d5b59513906a0d590
2 files changed