input: Write a function to sort a given list of names alphabetically. If the list is empty, return an empty list. The function should have one input parameter, which is the list of names to be sorted, and it should return the sorted list.
  
  
  def sort_names(names):
      names.sort()
      return names
  
  assert sort_names(["John", "Harry", "Robert"]) == ["Harry", "John", "Robert"]
  assert sort_names(["David", "Adam", "Charlie"]) == ["Adam", "Charlie", "David"]
  assert sort_names([]) == []
  assert sort_names(["Alice"]) == ["Alice"]
  assert sort_names(["Zach", "Yvonne", "Xander"]) == ["Xander", "Yvonne", "Zach"]
  
output: def sort_names(names):
      names.sort()
      return names