Develop a Python script to sort a given list of names alphabetically.
[John, Harry, Robert]
def sort_names(names):
    names.sort()
    return names

names = ["John", "Harry", "Robert"]
result = sort_names(names)
print(result)