Hello Suraj,
I understand that you want to sort the table column wise excluding the first row of the table.
The closest workaround is to create a custom sort mechanism to separate the data out and perform sorting on the rows excluding the first row.
Here is an example on how to do it:
% Extract the first row
firstRow = table(1,:);
% Extract the rest of the data excluding the first row
restOfData = table(2:end,:);
% Perform sorting on restOfData
% Combine the first row back with the sorted data
sortedTableData = [firstRow; sortedData];
% Update the table's data
set(table, 'Data', sortedTableData);
Here you can perform the same sorting mechanism on the "restOfData" instead of the entire table.
I hope this helps!