Fixes student sorting issue
Refactors student array sort to helper