sort polynomials in the resulted MCGBs