Hi all, don't know whether this is the right section but I have a big problem:

I am using boost C++ libraries to work with matrix data... I now need to sort a matrix by the data in a column

For example:

1 3
0 2

sorting increasingly by the second column:

0 2
1 3



std::sort can not do the job because it would sort ALL the matrix elements.. how can I solve this?

Please help