I need to know how to write a simple linear(insertion) sort that sort's an array of #'s into descending order while maintaining the link up of another array of numbers.
For example, a set of data for array ID will look like this:
ID[25]={ 4, 2, 1, 5, 3}
And a set of data for array SAT will look like this:
SAT[25]={ 780, 600, 1900, 690, 1200}
PS: ALL OF THESE NUMBERS ARE COMING FROM A DATA FILE