summaryrefslogtreecommitdiff
path: root/progs/a375.py
blob: 0323fd4dec2dcfa18795e38dc126391025602157 (plain)
1
2
3
def sort_matrix(M):
    result = sorted(M, key=sum)
    return result