I am having a lot of trouble sorting an array. The array contains 140 inner arrays of 3 points (x y z). I would like to sort all arrays based on lowest x coordinate to the highest. I have googled many methods and none of them have worked so far.
Basically I want to change:
[[1 2 3]
[8 9 7]
[4 5 6]
[5 4 3]]
into
[[1 2 3]
[4 5 6]
[5 4 3]
[8 9 7]]
But instead of 4.. there are 140 lines.
Any suggestions?
Version 2.4 of Python