The order of the columns as they appear in the matrix is changed according to the values in a numerical row in ascending order. This can be useful for displaying columns in a specific order in a heat map.
Output: Same matrix but with columns in the new order implied by a numerical row.