
    Develop a function that ranks student essays by their total scores, where each essay is evaluated across multiple criteria and represented as a row of individual scores in a matrix. The function should sort the matrix rows based on the sum of evaluation scores in ascending order, allowing for easy identification of performance levels and grade distributions.
    

    
def sort_matrix(M):
    """
    Develop a function that ranks student essays by their total scores, where each essay is evaluated across multiple criteria and represented as a row of individual scores in a matrix. The function should sort the matrix rows based on the sum of evaluation scores in ascending order, allowing for easy identification of performance levels and grade distributions.
    

    """
def sort_matrix(M):
    """
    Develop a function that ranks student essays by their total scores, where each essay is evaluated across multiple criteria and represented as a row of individual scores in a matrix. The function should sort the matrix rows based on the sum of evaluation scores in ascending order, allowing for easy identification of performance levels and grade distributions.
    

    """
    result = sorted(M, key=sum)
    return result