Sort list of Objects Java

I have a little problem, i know i can use sort functions from Libraries. But this is a task from my University and i should write a sort function for my own. So i have Objects of students in my List. …