Generate a Python script for sorting a list in ascending order.
[3, 4, 8, 5, 10]
def sortList(list): 
    list.sort() 
    return list
    
unsorted_list = [3, 4, 8, 5, 10]
sorted_list = sortList(unsorted_list)

print("Sorted list:", sorted_list)