1. sorted

2. sort(lambda : )

# sort, len

a.sort(key = lambda x : len(x))

# a = [(1,3), (1,2)]
# sorted, index
for i in a:
	b = sorted(a, key = lambda x : i[1])