I am currently taking a C level 2 course. The assignment is to create 4 arrays from information in a text file and sort through the arrays and print to a text file this information in descending order. This is the first time I have experienced arrays and I am having trouble writing code for this.

I understand how to declare the arrays and I know I need to use a for statement to sort but I am having trouble with the idea of sorting them.

The arrays are: employee ID, wage, hours, weekly pay. How do I sort the employee ID's into descending order and have the corresponding wage, hours, and weekly pay follow the ID number.

Any information on this would be helpful to me as I seem to be struggling with this.

Thanks