JavaScript program to sort words in an alphabetical order:

Created with Sketch.