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.
What it is suppose to display with different data:
What is displayed with similar data:
Please guys, I need your help!