对第一列进行升序排列
# main
n = int(input())
pos = [[0 for _ in range(2)] for _ in range(n)]
for i in range(n):
temp = input().split()
for j in range(2):
pos[i][j] = int(temp[j])
pos = sorted(pos, key = lambda x : x[0])
print(pos)
对第一列进行升序排列
# main
n = int(input())
pos = [[0 for _ in range(2)] for _ in range(n)]
for i in range(n):
temp = input().split()
for j in range(2):
pos[i][j] = int(temp[j])
pos = sorted(pos, key = lambda x : x[0])
print(pos)