Generate a function in Python that takes a list and returns an ordered list
mylist = [5, 9, 1, 4]
def order_list(mylist):
    mylist.sort()
    return mylist

print("Ordered list: ", order_list(mylist))