input: Write a function to sort a given list of names alphabetically and return the sorted list.
  def sort_names(names):
      names.sort()
      return names
  
  names1 = ["John", "Harry", "Robert"]
  names2 = ["Alice", "Bob", "Charlie", "David"]
  
  assert sort_names(names1) == ["Harry", "John", "Robert"]
  assert sort_names(names2) == ["Alice", "Bob", "Charlie", "David"]
output: def sort_names(names):
      names.sort()
      return names