Create a program in Python to sort a given unsorted list.
[5, 4, 1, 8, 9, 2]
def sortList(lst): 
    lst.sort() 
    return lst
  
ar_list = [5, 4, 1, 8, 9, 2]
result = sortList(ar_list) 
  
print(result)