Design a program in Python which takes an array of words as input and return an alphabetically ordered array of the words.
["apple","banana","grapes"]
def sortAlphabetically(arr):
    arr.sort()
    return arr

print(sortAlphabetically(["apple","banana","grapes"]))