Convert a column with float values ββto a vector, sort it and get the sort index. You can then apply this index to an array of cells.
mycellarray = {'a',1,0.5; 'b',2,0.1; 'c',3,4.5; 'd',4,-3.2}; vector2sort=cell2mat(mycellarray(:,3)); [~,idx] = sort(vector2sort) mycellarraysorted = mycellarray(idx,:);
However, in some versions of Octave, the tilde ~ operator is not defined. In this case:
vector2sort = mycellarray(:,3); [dummy,idx] = sort(vector2sort); mycellarraysorted = mycellarray(idx,:);
source share