I have a table T1 with 1000 rows and 20 columns. I also have a column based cell array B with the size of 1000 x 1.
Here is my code to sort the table:
T1 = T1[sortperm(T1[:, 12]; rev=true), :]; # Sort by the depth values
T1 = T1[sortperm(T1[:, 2]), :]; # Sort by Station ID
T1 = T1[sortperm(T1[:, 1]), :]; # Sort by Expedition IDs