Dual sorts figured out