I have an array of numbers, like: [1, 4, 7, 1, 2, 1, 3, 1, 4]
.
I would like to remove duplicate elements and sort the result, i.e. the required result is:
[1, 2, 3, 4, 7]
.
Is there any built in Javascript/jQuery functions to do this, or I must write my own ?