fix for opp sort