input: Write a function to sort a given list of names alphabetically. The function should take a list of names as input and return the sorted list.
  
  def sort_names(names):
      names.sort()
      return names
  
  assert sort_names(["John", "Harry", "Robert"])==["Harry", "John", "Robert"]
  assert sort_names(["Alice", "Bob", "Charlie"])==["Alice", "Bob", "Charlie"]
  assert sort_names(["Zebra", "Ant"])==["Ant", "Zebra"]
  assert sort_names([])==[]
  assert sort_names(["Apple"])==["Apple"]
output: def sort_names(names):
      names.sort()
      return names