It's a multidimensional problem, several columns (features). The reason I want to have some columns sorted it's because I want to calculate the distance (minimum) between some features, a kind of PCA (principal components analysis), probably something you all are used to work with.