I seem to be misunderstanding something basic about sorting from data files. I am trying to input data from a sequential file, and sort it by one of the variables, highest to lowest, and then print the three highest ... not the variable but the associated name attached to the variable. For example the data file would look like this:
The Name$ variable values are One, Two, Three, Four, Five. If I sort by the second numerical variable, I want it to be able to print highest to lowest, the top two or three (or any number of course), for example:
Five Three One
I think this should be straightforward but I don't seem to be putting it together from the text I am trying to learn from. Thanks if you can help.