Fix table sort for student list