def sort_it(arr: list) -> list:
"""
sorted takes 3 arguments
- iterable : list/tuple/string
- key(optional) the key on which you want to sort
- reverse(optional) default is False, make it True for reverse sorting
return a sorted list
"""
return sorted(arr, key = lambda ele: ele[1], reverse = False)