human
Sort numpy matrix row values in ascending order
assistant
Here is some code to sort array `arr` in ascending order by values of the 3rd column

arr[arr[:, (2)].argsort()]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.