Back to labs/answer key page
tr ' ' '\012' < daffodils | sort
The pipe (`|') sends the output of tr to sort.