input: Write a function to sort a list of names alphabetically. Given an unsorted list of names, the function should modify the list in place to sort the names in ascending order. The function should return the sorted list. If the input list is empty, the function should return an empty list.
  assert sort_names(["John", "Harry", "Robert"])==["Harry", "John", "Robert"]
  assert sort_names(["Alex", "Zach", "Ben"])==["Alex", "Ben", "Zach"]
  assert sort_names([""])==[""]
  assert sort_names([])==[]
output: def sort_names(names):
      names.sort()
      return names