Given
4 2 5 2 7 9 10 1 2
Sort each row on its own, so that the result is
2 4 5 2 7 9 1 2 10
Mathematica mat={{4, 2,5}, {2, 7,9}, {10,1,2}}; Map[Sort[#]&,mat]

{{2, 4, 5}, {2, 7, 9}, {1, 2, 10}} 
I had to convert each row to a list above for this to work. But for the case of columns (see last item earlier), this was not needed. Strange that one can’t not construct a Matrix from list of Row vectors as with a list of Column vectors.
Maple 2021.