# MBPP 12 Write a function to sort a given matrix in ascending order according to the sum of its rows.