input: Write a function to sort a given list of names alphabetically. The function 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(["Alice", "Bob", "Charlie", "David"])==["Alice", "Bob", "Charlie", "David"]
  assert sort_names([])==[]
  assert sort_names(["Zoe", "Yvonne", "Xavier"])==["Xavier", "Yvonne", "Zoe"]
  assert sort_names(["Eve"])==["Eve"]
output: def sort_names(names):
      names.sort()
      return names