l.insert(lo, e)
ascend_list = []
descend_list = []
for i in ss:
    insert_sort(ascend_list, i, lambda x, y: x[1:] >= y[1:])
for i in ss:
    insert_sort(descend_list, i, lambda x, y: x[1:] < y[1:])
print(ascend_list)
print(descend_list)
Maintain a list sorted by multiple attributes?