MATLAB: Problem using sortcols()

sort

Hi everybody, I have a matrix and I want to sort the colums based on the value of a rows. for example consider A:
A =
24 35 46 23 20 31 30 38 37
10 25 15 10 15 15 5 10 5
I want to extract the matrix B as follow:
B =
30 37 24 23 38 46 20 31 35
5 5 10 10 10 15 15 15 25
I've tried to do it with 'sortcols' order but I've faced with this error "Undefined function or variable 'sortcols'".
How could I fix it?

Best Answer

A = [ 24 35 46 23 20 31 30 38 37
10 25 15 10 15 15 5 10 5];
import bioma.data.*
DM_A = DataMatrix(A);
B = sortcols(DM_A)