I want to sort a table from this
{ {1,2,4}, {1,2,3}, {1,2,10}, {1,2,5}, {2,2,4}, {1,2,3}, {2,2,10}, {2,2,5} }
into
{ {1,2,3}, {1,2,4}, {1,2,5}, {1,2,10}, {2,2,3}, {1,2,4}, {2,2,5}, {2,2,10} }
basically coordinates ranging from x,y,z. I want to sort it based on its x value then its z.
I’m having a hardtime thinking about doing this. I know insertion methods are a way, but i can’t think properly right now.