remove the duplicated results
sort the tags in alphabetical order