The way to read this, each line represents a class number at my school. So on the left side is the class number and the right side is the section number. The way this is going to get sorted is by the right side. For example, when the user choices a sort option it will display the results as
1214 839
3110 802
and so on
So far I have written a selectionSort function and a display function. The display function gets called inside the selectionSort. So when I test my program and it gives me an infinite loop because I am assuming its my display function in the selectionSort. I don't know why it gives me an infinite loop. Can somebody point out the error, I looked over my code dozens of times, especially the display function because I know that is where the error is, but I to me that function code seems fine.