I have a matrix here and what I want is to copy its elements in a 2dim array or vector of vector(i prefer it) and sort them in a way that keep their indices.
For example for this matrix i want to keep these datas:(these datas contain indices and they are sorted)
1-5
1-2
2-4
4-5
2-5
1-4
3-5
1-3
3-4
2-3
Now which one do you suggest and how can I do it?