Remove tabs, sort list alphabetically, remove self from list.

From #3846.

Fun fact: You use a string as a #weight, and it'll sort the elements alphabetically by that string.