Reputation: 425
Okay, so, I have a 4x2 numpy ndarray, and I want to sort it lexicographically. That is, if I have the array
[[0,0],
[1,1],
[0,1],
[1,0]]
I want it to become
[[0,0],
[0,1],
[1,0],
[1,1]]
How do I do this?
Upvotes: 3
Views: 1678