Add commongrade count as a tertiary sort parameter.