MatrixSort changed