exp sorting
g2 implementation