Added 'magic-words' span to select words, sort by parent