My problem is how to sort an array of cells, considering only the first element of each cell in this vector:
array_A={[3 1 5] [1 6 2] [2 4 1]}
I want to sort array_A, the first element of each cell as follows:
array_A={[*1* 6 2] [*2* 4 1] [*3* 1 5]}
Do you have any idea on how I can solve this problem so that it can be done recursively for thousands of cells?
source
share