Hi experts
I have in a cell some words separated by spaces
e.g
dog cat tree hair pepper she moon sun cat tree three pepper

I wanted a function which extracts the unique values and sorts the words by length and alphabetically

steps to get the result
first removed the duplicates
** dog cat tree hair pepper she moon sun three

second to sort the words by length

** pepper three tree hair moon dog cat

last step to sort each group of length alphabtically
** pepper three hair moon tree cat dog