Z = np.random.randint(0,10,(3,3))
print Z
print Z[Z[:,1].argsort()]
[[8 0 9]
[0 6 6]
[4 4 1]]
[4 4 1]
[0 6 6]]