Modak interview question

Sort the numbers of array and remove the duplicates