Fix sort for class profile
Fix sort for student profile