IGT interview question

Sort & De-duplicate an array using Javascript or C#