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.
"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."