in reply to Re^3: Sorting a matrix based on the values of columnsin thread Sorting a matrix based on the values of columns