def index_on_inner_list(list_data, index_no):
    from operator import itemgetter
    
    result = sorted(list_data, key=itemgetter(index_no))
    return result
def index_on_inner_list(list_data, key2):
    from operator import itemgetter
   
    result = sorted(list_data, key=itemgetter(key2))
    return result