# Delete duplicates and sort a list of sets separately? [closed]

I have a set where it has three subsets. I want to have each element of each subsets appears only once, sorted, but the order of subsets does not change. For example: I want to get from $$\{\{5,2,2,3\},\{1,2,1,6\},\{7,4,5,2\}\}$$ the following $$\{\{2,3,5\},\{1,2,6\},\{2,4,5,7\}\}$$ I did this in three times using

Union[{5,2,2,3}]

Union[{1,2,1,6}]

Union[{7,4,5,2}]

, but I guess there must be a shortcut.

Thanks.

## closed as off-topic by yohbs, Kuba♦Apr 26 '18 at 19:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – yohbs, Kuba
If this question can be reworded to fit the rules in the help center, please edit the question.

• Union /@ {{5, 2, 2, 3}, {1, 2, 1, 6}, {7, 4, 5, 2}}? – Fred Simons Apr 26 '18 at 18:23
• Please read guide/ListManipulation. It is a must. – Kuba Apr 26 '18 at 19:43

list = {{5, 2, 2, 3}, {1, 2, 1, 6}, {7, 4, 5, 2}}

Union/@list