Design a computer program to sort the list according to alphabetical order.
["python", "javascript", "java", "ruby"]
def alphabetical_sort(words):
    return sorted(words)

list_of_words = ["python", "javascript", "java", "ruby"]
sorted_list = alphabetical_sort(list_of_words)
print(sorted_list)