Two things I have noticed in your sort method:
First, on line 21, is that supposed to be a ">" sign? I'm a bit unfamiliar with the "start{}" expression, but I assume it sets "start" to 0. If that's the case then your loop will never run, since 0 will never be greater than the number of students...