Return a copy of the fixed point variable x with the elements arranged in increasing order. For matrices,
fsortorders the elements in each column.For example,
fsort (fixed(4,0,[1, 2; 2, 3; 3, 1])) 1 1 2 2 3 3The
fsortfunction may also be used to produce a matrix containing the original row indices of the elements in the sorted matrix. For example,[s, i] = sort ([1, 2; 2, 3; 3, 1]) s = 1 1 2 2 3 3 i = 1 3 2 1 3 2