input: Write a function to sort a given list of names alphabetically. The function should take in a list of names as input and return the sorted list. If the input list is empty, it should return an empty list.
  def sort_names(names):
      if not names:
          return []
      names.sort()
      return names
  
  assert sort_names(["John", "Harry", "Robert"]) == ["Harry", "John", "Robert"]
  assert sort_names([]) == []
output: def sort_names(names):
      if not names:
          return []
      names.sort()
      return names