sort grades (challenge 167)