I have two columns of data. For example,
[78, c]
[28, a]
[34, g]
I want to see whether any built-in function to sort the number and tell me the order information. For example, (from small to large) the function will return [2, 3, 1] because the 2nd row has the smallest 1st column element.
What is your data structure?
If you’re in C++/CLI, then you’ve got the entire .NET framework available to you.
That said, I don’t believe that there’s anything built-in that will tell you the order. I believe everything will actually do the sort.
If you really need the order, not a sorted list, I believe this will do it. This creates new objects that remember their original list position, sorts them, and then reads back what the original indexes were.