Looking for Matlab sortrows function in C++

Hi friends,

I am translating codes from Matlab into C++. I am using "Eigen" library to make my life easier, which is a library that provides many Matlab-like functions in C++. But I couldn't find a function in "Eigen" can do "sortrows" operation as Matlab can. I am wondering if there is a way to match my need.

Thanks,

landlord1984
If you tell us what the matlab function "sortrows" does, we can tell you how to do the same in C++.

Here is the description:

"B = sortrows(A,column) sorts matrix A based on the columns specified in the vector, column. This input is used to perform multiple column sorts in succession. For equal values, the original order is preserved."
Topic archived. No new replies allowed.