sorting of psets in grades