How to sort and array of #'s into descending order while maintaining the link up of another array of numbers?

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

I need it too look something like this:

ID: SAT Score:
5 690
4 780
3 1200
2 600
1 1900

Can someone show me please?
please. someone?
Topic archived. No new replies allowed.