input: Write a function to sort the given list of words in alphabetical order and return the sorted list. If the input list is empty, return an empty list.
  def sort_words(words):
      if len(words) == 0:
          return []
      words.sort()
      return words
  
  assert sort_words(['bubble', 'selection', 'quicksort', 'insertion']) == ['bubble', 'insertion', 'quicksort', 'selection']
  assert sort_words(['apple', 'banana', 'cherry']) == ['apple', 'banana', 'cherry']
  assert sort_words(['zebra', 'xylophone', 'yacht']) == ['xylophone', 'yacht', 'zebra']
  assert sort_words(['cat', 'bat', 'hat']) == ['bat', 'cat', 'hat']
  assert sort_words([]) == []
output: def sort_words(words):
      if len(words) == 0:
          return []
      words.sort()
      return words