I want to sort the sub-arrays in a NumPy array that I have according to their length.
For example my array is
myArray = [[1,2,3,4,5,6,7],
[8,9,10,11],
[12],
[13],
[14,15,16,17,18,19,20,21,22,23,24]]
and I want to sort them as
myArray = [[14,15,16,17,18,19,20,21,22,23,24],
[1,2,3,4,5,6,7],
[8,9,10,11],
[12],
[13]]
Is there any possible way to doing this?
