sorting individual words alphabetically