Develop a function in Python that takes in a list and sorts the elements alphabetically.
my_list = ["word", "translate", "language", "computer"]
def sort_list(my_list):
  my_list.sort()
  return my_list 

print(sort_list(my_list))