Qualcomm Interview Question

How do you sort an array of numbers and remove all duplicates?