select device_id,up1.university,up1.gpa from user_profile as up1,(select university,min(gpa)as gpa from user_profile group by university)as up2 where up1.university=up2.university and up1.gpa=up2.gpa order by university