hi,
I have two columns as seen below. I want to sort column Y in descending order but I want to return the the X value of such a Y value as well.
X Y
5 0.9
3 0.99
6 0.8
2 0.85
etc etc
The solution should look like
X Y
3 0.99
5 0.9
2 0.85
6 0.8
etc etc
Any suggestions?
simple approach
Maple, alas, doesn't not currently have a sort-in-place procedure that operates on rtable (Matrices). You can accomplish this by converting to a listlist and sorting that. For example
For large Matrices you might use a modification of sorting-with-attributes:
Thank you Joe! As always
Thank you Joe!
As always solid as a rock!
I appreciate you taking the time to explain this to me :-)