sort parents alphabetically