Good day to all MPGH coders. I've came across a problem in my C language assignment where I have to sort arrays from highest to lowest with the corresponding year for a selected 'hospital type'. But I have the same data for some for some of the years and when I build the program, the hospital with the same data looped many times but still displays the correct answer.
I don't understand the full task, i don't understand what is the expected output and i don't see how i can help on your "sorting" if there is no code to take a look in.
What you expect here now exactly?
Are you required to implement a stable sort, or is an unstable sort fine as well? A stable sort preserves the order of elements in when they are the same, unstable *might* change the order.