Sort a matrix in respect with a line.
[M] = NL_F_SortColumns(M,L,D)
Matrix.
Line index.
Direction.
NL_F_SortColumns sorts the matrix M in respect with the line L. If D='i', increasing order is used. If D='d', decreasing order is used.
A=[95 45 92 41 13 1 84; 95 7 73 89 20 74 52; 95 7 73 5 19 44 20; 95 7 40 35 60 93 67; 76 61 93 81 27 46 83; 76 79 91 0 19 41 1]; B=NL_F_SortColumns(A,2,'i');//application of NL_F_SortColumns