Sort duplicate values

Create Set and Sort come to mind.

Continuing the discussion from How to ask effective questions: