Write a Python program that reads in a list of numbers and sorts them in the ascending order.
[2, 3, 4, 5, 1]
def sort_list(lst):
    lst.sort()
    return lst

result = sort_list([2, 3, 4, 5, 1])
print(result)