MATLAB: Sort Cell Structure according to specific row

cellrowsort

Hi! I've been trying to sort my Cell, so that the columms are displayed in a crescent order of the first row elements. Unfortunately the "sortrows" function applied with the transposed cell didn't seem to work (maybe because my second row is composed by arrays). Could anyone suggest another way?
Excerpt of the cell below:
Goal ist to have the following:
{0 8 21 32 52 62, [ ] [ ] [ ] [ ] [ ] [ ]}
Thx a Lot!

Best Answer

Are you tying to do something like this
C; % 2xn cell array
[~, idx] = sort([C{1,:}]);
C = C(:, idx);